[issue4388] test_cmd_line fails on MacOS X

STINNER Victor report at bugs.python.org
Wed Oct 20 18:39:02 CEST 2010


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

> One solution would be to duplicate the UTF-8 decoder for OSX,
> incorporating surrogate escape. This should be much shorter 
> than the full UTF-8 codec, and perhaps at least utf8_code_length 
> could be shared.

Good idea, implemented in the attached patch [osx_utf8_cmdline-3.patch]. I tested the patch on x86 Snow Leopard 3.x and it looks like it fixes the test_cmd_line failure (I modified some tests to remove manually LC_ALL, LC_CTYPE and LANG environment variables).

----------
Added file: http://bugs.python.org/file19305/osx_utf8_cmdline-3.patch

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


More information about the Python-bugs-list mailing list