[issue1511] csv input converts \r\n to \n but csv output does not when a field has internal line breaks

Daniel Diniz report at bugs.python.org
Tue May 12 15:23:19 CEST 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

I get different behavior in py3k compared to trunk:

~/trunk-py$ ./python issue1511_py3k.py
[['foo', 'bar\r\nbaz\r\nbiff', 'boo']]
'foo,"bar\r\nbaz\r\nbiff",boo\r\n'

~/trunk-py$ ../py3k/python issue1511_py3k.py
[['foo', 'bar\nbaz\nbiff', 'boo']]
'foo,"bar\nbaz\nbiff",boo\n'

----------
components: +IO
nosy: +ajaksu2, pitrou
stage:  -> test needed
versions: +Python 2.6 -Python 2.4
Added file: http://bugs.python.org/file13970/issue1511_py3k.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1511>
_______________________________________


More information about the Python-bugs-list mailing list