[issue1561] py3k: test_mailbox fails on Windows

2008-04-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Applied 2nd solution as r61951 -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1561] py3k: test_mailbox fails on Windows

2008-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Another patch, which uses newline='' instead. Tests pass. The patch is much smaller, and old files are more likely to be compatible. OTOH, messages are unicode strings with \r\n. Which one do you prefer? Added file: http://bugs.python

[issue1561] py3k: test_mailbox fails on Windows

2008-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Three months later, one obvious correction: open all (text) files with the newline='\n' option. - This makes files identical between Unix and Windows version - no more os.linesep A compatibility problem: mailboxes created with python2.

[issue1561] py3k: test_mailbox fails on Windows

2007-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > mailbox.py is expected to work with files opened in binary mode Not everywhere, unfortunately. Some files are still opened in text mode. And this makes a huge difference with py3k: one accepts bytes, the other requires strings. __

[issue1561] py3k: test_mailbox fails on Windows

2007-12-06 Thread Paul Moore
Paul Moore added the comment: I believe that mailbox.py is expected to work with files opened in binary mode. A long time ago I opened a bug on th email package (http://bugs.python.org/issue586899) which turned out to be because mailbox.py required binary mode files. The conclusion was that it wo

[issue1561] py3k: test_mailbox fails on Windows

2007-12-06 Thread Christian Heimes
Changes by Christian Heimes: -- nosy: +tiran priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscri

[issue1561] py3k: test_mailbox fails on Windows

2007-12-06 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: test_mailbox keeps failing on Windows, due to line-ending issues. Difficult things began when the files started to open in text mode. Trying to list problems: - mailbox.py works with differences of tell() results, and uses this to as an argument to read(