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 vstinner
Recipients vstinner
Date 2010-12-27.02:30:42
SpamBayes Score 3.900658e-10
Marked as misclassified No
Message-id <1293417043.69.0.869420684931.issue10780@psf.upfronthosting.co.za>
In-reply-to
Content
PyErr_SetFromWindowsErrWithFilename() expects a filename encoded to UTF-8. It is called by win32_error() function of the nt (posix) module, and win32_error() is called on an error in the bytes implementation of a function (if the argument is a byte string, not an Unicode string). But on Windows, bytes filenames are encoded to the ANSI code page, not to UTF-8.

PyErr_SetExcFromWindowsErrWithFilename() expects also a filename encoded to UTF-8. It is not used in Python core, but I think that it should be fixed too.

See also #10779 (and #9713 and #10114).
History
Date User Action Args
2010-12-27 02:30:43vstinnersetrecipients: + vstinner
2010-12-27 02:30:43vstinnersetmessageid: <1293417043.69.0.869420684931.issue10780@psf.upfronthosting.co.za>
2010-12-27 02:30:42vstinnerlinkissue10780 messages
2010-12-27 02:30:42vstinnercreate