Bug with win32 open and utf-16 file

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Sat Aug 23 16:46:33 CEST 2003


On Sat, 23 Aug 2003 14:36:58 GMT, rumours say that derek / nul
<abuseonly at sgrail.org> might have written:

[snip opening 'rb' a UTF-16 file]

>The original file has line terminator characters of 00 0d 00 0a.
>After being read into a variable or a list the line termination characters have
>been changed to 00 0a 00 0a

You didn't mention any writing back the file.  Do you?  How exactly do
you write it back?

By the way, what are the unicode name for the characters u"\u000a" and
u"\u000d"?  In ASCII (stripping the MSB), they are LF and CR.
-- 
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.




More information about the Python-list mailing list