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, pjenvey, vstinner
Date 2010-09-30.08:57:00
SpamBayes Score 2.3424157e-10
Marked as misclassified No
Message-id <201009301056.53095.victor.stinner@haypocalc.com>
In-reply-to <4CA44263.3090509@egenix.com>
Content
> The problem with command line arguments is that they don't necessarily
> have just one encoding (just like env vars may well use more than
> one encoding) on Unix platforms.

The issue #8776 proposes the creation of sys.argv.

> When using path and file names on the command line they will likely
> use the file system encoding. When passing in configuration variables,
> the arguments will likely use the current locale settings.

Ok, and? We have to pick up one and use it. We cannot guess the encoding of 
each argument, nor change sys.argv to use bytes. (And the creation sys.argvb 
will not solve this issue.)

I still think that using the filesystem encoding is not possible for technical 
reasons (it might be possible, but it will be very hard), whereas I attached a 
working patch to use the locale encoding.
History
Date User Action Args
2010-09-30 08:57:02vstinnersetrecipients: + vstinner, lemburg, pjenvey
2010-09-30 08:57:00vstinnerlinkissue9992 messages
2010-09-30 08:57:00vstinnercreate