Hi, Gaurav,

We have changed that the tests for skipping leading and trailing
spaces as you suggested.  Please try out the latest source code from
SVN Revision 565 when you get the chance.

John


On 9/11/12 6:14 AM, Gaurav Agarwal wrote:
> Hi John,
> 
> I'm facing a problem while importing files with ctrl-A as delimiter
> (this will be a problem with any 'unprintable' delimiter as well). If
> there is a null value in the record, then instead of that value being
> treated as null, the next value in the record takes its place (leading
> to the last value in the record being null).
> 
> Looking at the code, the problem seems to lie here in util.cpp:
> while (*buf && *isgraph(*buf)* == 0) ++ buf; // skip leading space
> 
> This line is ignoring ctrl-A as it is treating them as 'leading
> spaces'. Can we use isspace() instead of isgraph() here? 
> 
> -gaurav
> 
> *test-case (pls retype ctrl-A on command and in file)*
> *
> *
> 33^ASGN^Afalse^Afalse^A^ARM_iOS^ANorth
> America^At^At^A300*250^ANA_TEMP_DELETE^AAPP^AFrance^AOTHER^A5^A0^A0^A0
> 
> ardea -d /tmp/tst -t ~/Desktop/pruned_file.csv -b ^A -m
> "d0:t,d1:t,d2:t,d3:t,d4:t,d5:t,d6:t,d7:t,d8:t,d9:t,d10:t,d11:t,d12:t,d13:t,m0:d,m1:d,m2:d,m3:d"
> 
> 
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
> 
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to