mishandling of embedded NULs (was: Re: [Csv] trial zip/tar packages of csv module available)
Skip Montanaro
skip at pobox.com
Sat Feb 15 01:54:08 CET 2003
John> Actually it doesn't quite treat a NUL exactly like a newline; it
John> throws data away without any warning; see below.
This is to be expected I think, considering C strings are being manipulated
at the low level. I just added a check to _csv.c and an extra test. It now
raises csv.Error if the file being read contains NUL bytes. (Should an
exception be raised on output as well?)
Skip
More information about the Csv
mailing list