[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

STINNER Victor report at bugs.python.org
Sat Sep 11 07:56:40 CEST 2010


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

> How about TESTFN_UNICODE (test_unicode_file) issue?

  File "e:\python-dev\py3k\lib\test\test_unicode_file.py", line 12, in <module>
    TESTFN_UNICODE.encode(TESTFN_ENCODING)
UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

That's because mbcs encoding is more strict on Windows. But this test is not needed on Windows. Please try attached patch (unicode_file.patch).

----------
keywords: +patch
resolution: fixed -> 
status: closed -> open

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


More information about the Python-bugs-list mailing list