This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients MrJean1, amaury.forgeotdarc, ixokai, loewis, mark.dickinson, michael.foord, piro, pitrou, ronaldoussoren, rpetrov, skip.montanaro, slmnhq, vstinner
Date 2010-10-20.16:38:59
SpamBayes Score 3.6886605e-11
Marked as misclassified No
Message-id <1287592742.88.0.069476788224.issue4388@psf.upfronthosting.co.za>
In-reply-to
Content
> 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).
History
Date User Action Args
2010-10-20 16:39:03vstinnersetrecipients: + vstinner, loewis, skip.montanaro, ixokai, ronaldoussoren, amaury.forgeotdarc, mark.dickinson, pitrou, piro, MrJean1, rpetrov, michael.foord, slmnhq
2010-10-20 16:39:02vstinnersetmessageid: <1287592742.88.0.069476788224.issue4388@psf.upfronthosting.co.za>
2010-10-20 16:39:01vstinnerlinkissue4388 messages
2010-10-20 16:39:00vstinnercreate