Message124697
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). |
|
Date |
User |
Action |
Args |
2010-12-27 02:30:43 | vstinner | set | recipients:
+ vstinner |
2010-12-27 02:30:43 | vstinner | set | messageid: <1293417043.69.0.869420684931.issue10780@psf.upfronthosting.co.za> |
2010-12-27 02:30:42 | vstinner | link | issue10780 messages |
2010-12-27 02:30:42 | vstinner | create | |
|