Message 106105 - Python tracker

Message106105

Author vstinner
Recipients MrJean1, amaury.forgeotdarc, loewis, mark.dickinson, michael.foord, ronaldoussoren, rpetrov, slmnhq, vstinner
Date 2010-05-19.21:33:31
SpamBayes Score 0.00021414779
Marked as misclassified No
Message-id <1274304814.89.0.810281427665.issue4388@psf.upfronthosting.co.za>
In-reply-to
Content
This issue is specific to Mac OS X because the file system encoding is hardcoded to UTF-8 on this OS. As written in msg76244, the problem is that the encoding is different for input (sys.argv) and output arguments (arguments of child processes). As written in msg76255, program arguments are encoded to the locale (terminal) encoding.

Finally, the problem is that subprocess, os.exec*(), etc. encode command line arguments with the file system encoding instead of the locale encoding.

On Linux, it just work because the file system encoding is the locale encoding.
History
Date User Action Args
2010-05-19 21:33:35vstinnersetrecipients: + vstinner, loewis, ronaldoussoren, amaury.forgeotdarc, mark.dickinson, MrJean1, rpetrov, michael.foord, slmnhq
2010-05-19 21:33:34vstinnersetmessageid: <1274304814.89.0.810281427665.issue4388@psf.upfronthosting.co.za>
2010-05-19 21:33:32vstinnerlinkissue4388 messages
2010-05-19 21:33:32vstinnercreate