homepage

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 Arfrever, amaury.forgeotdarc, ezio.melotti, lemburg, loewis, vstinner
Date 2010年10月21日.00:58:20
SpamBayes Score 0.0022022587
Marked as misclassified No
Message-id <1287622702.09.0.494128511609.issue8776@psf.upfronthosting.co.za>
In-reply-to
Content
Since r85765 (issue #4388), always use UTF-8 to decode the command line arguments on Mac OS X, not the locale encoding. Which means that the pseudo-code becomes:
 if os.name != 'nt':
 if sys.platform == 'darwin':
 encoding = 'utf-8'
 else:
 encoding = locale.getpreferredencoding()
 sys.argvb = [arg.decode(encoding, 'surrogateescape') for arg in sys.argv]
sys.argvb should be synchronized with sys.argv, as os.environb with os.environ.
History
Date User Action Args
2010年10月21日 00:58:22vstinnersetrecipients: + vstinner, lemburg, loewis, amaury.forgeotdarc, ezio.melotti, Arfrever
2010年10月21日 00:58:22vstinnersetmessageid: <1287622702.09.0.494128511609.issue8776@psf.upfronthosting.co.za>
2010年10月21日 00:58:20vstinnerlinkissue8776 messages
2010年10月21日 00:58:20vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /