[GRASS5] v.in.ascii import failure

Hi,

in GRASS 6.0 cvs, there is a problem importing ascii coordinate pairs with v.in.ascii. Using cat test.txt | v.in.ascii fs='|' out=mymap doesn't work:

599251|4927066
599090|4926953
599097|4926472
599280|4925969
599863|4926391
599849|4926841

Error:
Maximum input row length: 16
Maximum number of columns: 2
Minimum number of columns: 2
ERROR: y column is not of number type

simply adding an ID (or another 3rd column) works:

1|599251|4927066
2|599090|4926953
3|599097|4926472
4|599280|4925969
5|599863|4926391
6|599849|4926841

cat test.txt | v.in.ascii fs='|' out=mymap
Maximum input row length: 18
Maximum number of columns: 3
Minimum number of columns: 3
column: 1 type: integer
column: 2 type: integer
column: 3 type: string length: 8
Building topology ...
6 primitives registered
Building areas: 100%
0 areas built
0 isles built
Attaching islands:
Attaching centroids: 100%
Topology was built.
Number of nodes : 6
Number of primitives: 6
Number of points : 6
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0

Why is this? Do I always need 3 columns?

ciao
Otto

in GRASS 6.0 cvs, there is a problem importing ascii coordinate pairs
with v.in.ascii. Using cat test.txt | v.in.ascii fs='|' out=mymap
doesn't work:

599251|4927066
599090|4926953
599097|4926472
599280|4925969
599863|4926391
599849|4926841

Error:
Maximum input row length: 16
Maximum number of columns: 2
Minimum number of columns: 2
ERROR: y column is not of number type

..

Why is this? Do I always need 3 columns?

Note the trailing spaces in the above data. column two is "4927066 "
which is a string not a numeric. Get rid of the trailing spaces and it
works fine with two column input.

Perhaps v.in.ascii should use G_strip() after G_getl2()? but then what
happens when you want a string with trailing newlines? (e.g. keep
whitespace padding for other software)
Maybe ok if just G_strip() whole input line not each individual field?

Hamish