➜

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.

作者 vstinner
收信人 lemburg, loewis, pjenvey, ronaldoussoren, vstinner
日期 2010-09-30.10:43:16
SpamBayes Score 5.800501e-07
Marked as misclassified 否
Message-id <1285843398.78.0.158280849116.issue9992@psf.upfronthosting.co.za>
In-reply-to
内容
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. >>
历史
日期 用户 动作 参数
2010-09-30 10:43:18vstinner修改recipients: + vstinner, lemburg, loewis, ronaldoussoren, pjenvey
2010-09-30 10:43:18vstinner修改messageid: <1285843398.78.0.158280849116.issue9992@psf.upfronthosting.co.za>
2010-09-30 10:43:16vstinner链接issue9992 messages
2010-09-30 10:43:16vstinner创建