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 lemburg, loewis, pjenvey, ronaldoussoren, vstinner
Date 2010-09-30.10:43:16
SpamBayes Score 5.800501e-07
Marked as misclassified No
Message-id <1285843398.78.0.158280849116.issue9992@psf.upfronthosting.co.za>
In-reply-to
Content
Extract of an interesting message (msg111432) of #8775 (issue specific to Mac OS X):

<< A system where the filesystem encoding doesn't match the locale encoding is hard to get right. While it would be possible to add sys.cmdlineencoding that doesn't actually solve the semantic problem because external tools might not cooperate.

That is, most system tools seem to work with bytes internally and do not treat arguments as text encoded in the locale encoding that should be re-encoded in the filesystem encoding before passing them to the C APIs.

That is, when calling "ls somefile" the "ls" command will pass the bytes in argv[1] to the POSIX routines for getting file information without trying to reencode. >>
History
Date User Action Args
2010-09-30 10:43:18vstinnersetrecipients: + vstinner, lemburg, loewis, ronaldoussoren, pjenvey
2010-09-30 10:43:18vstinnersetmessageid: <1285843398.78.0.158280849116.issue9992@psf.upfronthosting.co.za>
2010-09-30 10:43:16vstinnerlinkissue9992 messages
2010-09-30 10:43:16vstinnercreate