This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients John.Chandler, Sergey.Prokhorov, cgrohmann, christian.heimes, ezio.melotti, ricli85, serhiy.storchaka
Date 2013-01-14.09:12:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358154722.35.0.22152700111.issue11159@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, this thing was doubted me too. I proceeded from the following considerations.

1. Often system id is used for file operations and in this case you need to use the file system encoding. Unfortunately Python 2 does not have 'surrogateescape' handler which would allow to encode arbitrary name and then restore and re-encode it for file operations.

2. Python 2 in contrary to Python 3 accepts bytes and they may not be valid UTF-8.

We have to choose between compatibility with Python 2 and Python 3. I chose the first, because it is more important for bugfix.

May be I am wrong.
History
Date User Action Args
2013-01-14 09:12:02serhiy.storchakasetrecipients: + serhiy.storchaka, christian.heimes, cgrohmann, ezio.melotti, John.Chandler, ricli85, Sergey.Prokhorov
2013-01-14 09:12:02serhiy.storchakasetmessageid: <1358154722.35.0.22152700111.issue11159@psf.upfronthosting.co.za>
2013-01-14 09:12:02serhiy.storchakalinkissue11159 messages
2013-01-14 09:12:01serhiy.storchakacreate