[Python-Dev] Use our strict mbcs codec instead of the Windows ANSI API

"Martin v. Löwis" martin at v.loewis.de
Tue Oct 25 09:09:56 CEST 2011


> I propose to raise Unicode errors if a filename cannot be decoded on Windows, 
> instead of creating a bogus filenames with questions marks.

Can you please elaborate what APIs you are talking about exactly?

If it's the byte APIs (i.e. using bytes as file names), then I'm -1 on
this proposal. People that explicitly use bytes for file names deserve
to get whatever exact platform semantics the platform has to offer. This
is true on Unix, and it is also true on Windows.

Regards,
Martin


More information about the Python-Dev mailing list