[issue850997] mbcs encoding ignores errors

STINNER Victor report at bugs.python.org
Fri Jun 11 03:28:53 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

New version of the patch:
 - decode_mbcs() calls raise_translate_exception() to set the error (in the previous patch, I'm not sure that the error was set)
 - include #8784 patch (tarfile uses utf-8 as the default encoding)
 - ctypes: use mbcs is strict mode instead of ignore mode. This is just a workaround, the real fix is to remove the implicit conversion between bytes and characters: see #8966

The patch requires #8969 patch (use mbcs in strict mode to encode/decode filenames).

----------
Added file: http://bugs.python.org/file17622/mbcs_errors-py3k-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue850997>
_______________________________________


More information about the Python-bugs-list mailing list