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 ishimoto
Recipients ishimoto, terry.reedy, ubershmekel, vstinner
Date 2011-10-26.02:18:43
SpamBayes Score 6.3669625e-12
Marked as misclassified No
Message-id <CAK2Ax-VSjLJT5fQW5k92P5kLwLR=x4QFXSf6=FBOmDcO4mXTkA@mail.gmail.com>
In-reply-to <4EA750BF.6010505@haypocalc.com>
Content
On Wed, Oct 26, 2011 at 9:12 AM, STINNER Victor <report@bugs.python.org> wrote:
>
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
>
> Le 26/10/2011 01:32, Atsuo Ishimoto a écrit :
>> - I don't think filenames cannot be decoded in ANSI code page are rare enough to be ignored.
>
> The issue is able being able to be noticied of encoding errors.

This patch solve nothing, but just raises exception. It can break
existing codes. Also, I don't think it worth to add weired behavior to
Python std lib. I'll be surprised if *Byte* API raised an
UnicodeEncodeError.

> Anyway, you must use the Unicode API on Windows. If you use the Unicode
> API, filenames are no more encoded and code pages are no more used, so
> bye bye Unicode errors!
>

Agreed. So I would like to suggest not to adding unnecessary
complexity to the Byte API.
History
Date User Action Args
2011-10-26 02:18:44ishimotosetrecipients: + ishimoto, terry.reedy, vstinner, ubershmekel
2011-10-26 02:18:43ishimotolinkissue13247 messages
2011-10-26 02:18:43ishimotocreate