Author Technologov
Recipients Technologov
Date 2008-02-16.21:30:44
SpamBayes Score 0.0316795
Marked as misclassified No
Message-id <1203197447.55.0.672622551318.issue2131@psf.upfronthosting.co.za>
In-reply-to
Content
"codecs" module on Windows writes incorrect end-of-line, making it
impossible to write Unicode files.

See below, how-to reproduce bug (Python 2.5.1 on Windows XP)
===================================================================

#buggy unicode support module:
import codecs
filewr=codecs.open('myfile.txt','w','utf-8')
filewr.write("abc"+"\n")
===================================================================
Now, try to open this 'myfile.txt' using Windows Notepad.
The bug is perfectly visible.

The code below, will give correct results however:
===================================================================

filewr=open('myfile.txt','w')

filewr.write("abc"+"\n")
===================================================================
Basically this bugs _prevents_ me from writing Unicode text files.

NOTE: I'm not sure, if this bug should relate to "Windows" or "Unicode"
component.
NOTE: This bug is reproducible, even without writing Unicode characters.

-Technologov, 16.02.2008.
History
Date User Action Args
2008-02-16 21:30:47Technologovsetspambayes_score: 0.0316795 -> 0.0316795
recipients: + Technologov
2008-02-16 21:30:47Technologovsetspambayes_score: 0.0316795 -> 0.0316795
messageid: <1203197447.55.0.672622551318.issue2131@psf.upfronthosting.co.za>
2008-02-16 21:30:45Technologovlinkissue2131 messages
2008-02-16 21:30:44Technologovcreate