
report at bugs
Nov 4, 2009, 6:13 AM
Post #1 of 3
(64 views)
Permalink
|
|
[issue7262] codecs.open() + eol (windows)
|
|
New submission from shamilbi <shamilbi[at]gmail.com>: different eol when writing to fp = codecs.open(.., 'w', 'cp866') (windows, python-2.6.4) def write(fp): fp.write("""\ a """) # eol=0d0a (windows, python-2.6.4) with open('0d0a.tmp', 'w') as fp: write(fp) # eol=0d0a (windows, python-2.6.4) with codecs.open('0d0a-codecs.tmp', 'w') as fp: write(fp) # --- BUG --- # eol=0a (windows, python-2.6.4) with codecs.open('0a-codecs.tmp', 'w', 'cp866') as fp: write(fp) ---------- components: Library (Lib) files: eol-bug.py messages: 94888 nosy: shamilbi severity: normal status: open title: codecs.open() + eol (windows) type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file15256/eol-bug.py _______________________________________ Python tracker <report[at]bugs.python.org> <http://bugs.python.org/issue7262> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|