STINNER Victor victor.stin...@haypocalc.com added the comment:
Fixed by r87519.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10780
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
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
STINNER Victor victor.stin...@haypocalc.com added the comment:
issue10780.patch fixes this issue.
--
keywords: +patch
Added file: http://bugs.python.org/file20171/issue10780.patch
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
issue10780_mbcs_ignore.patch is a safer but more complex fix: use mbcs decoder
with the ignore error handler. Even if issue10780.patch might raise a
UnicodeDecodeError, I prefer it because it's shorter, simpler and so easier to