﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
577	psVectorsReadFromFile parsing of multiple columns	Paul Price	David.Robbins@…	"Parsing of multiple columns does not work correctly: it would not parse the
simple file:

# Non-linearity correction lookup table
# Col 1: Input value
# Col 2: Corrected value
0	0
100	1
200	2
...

It fails with the (rather unenlightening) error message:

2005:11:03 22:47:32Z|mithrandir          |E|psVectorsReadFromFile
(psLookupTable.c:553)
    Parsing text file failed.

I traced this down to the logic in the various parse functions.  The parse
function use functions like strtol() to convert the string to a number.  The
parse function checks the value of the 'end' character after strtol, assuming
this should be '\0'.  But in the case that there are multiple columns, the end
character after reading the first number will not be '\0', but will be whitespace.

The fix is to change the lines that read:
    if(*end != '\0') {
to:
    if(*end != '\0' && !isspace(*end)) {"	defect	closed	high		mathtypes	0.8.0	critical	fixed		
