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 baikie
Recipients baikie, vstinner
Date 2010-08-14.19:17:18
SpamBayes Score 3.41294e-07
Marked as misclassified No
Message-id <>
In-reply-to <>
> CS_PATH is hardcoded to "/bin:/usr/bin" in the GNU libc for UNIX. Do you know 
> another key for which the value can be controled by the user (or the system 
> administrator)?

No, not a specific example, but CS_PATH could conceivably refer
to some POSIX compatibility suite that's been installed in a
non-ASCII location, and implementations can add their own
variables for whatever they want.

> CS_PATH is just an example, there are other keys. I'm not sure that all values 
> are encoded to the filesystem encodings, it might be another encoding?
> Well, if we really doesn't know the encoding, a solution is to use a bytes API 
> (which may avoid the question of the usage of the PEP 383).

The other variables defined by POSIX refer to environment
variables and command-line options for the C compiler and the
getconf utility, all of which would use the FS encoding in
Python, but I agree there's no way to know the appropriate
encoding in general, or even whether anything cares about

Personally, I have no objections to making it return bytes.
Date User Action Args
2010-08-14 19:17:21baikiesetrecipients: + baikie, vstinner
2010-08-14 19:17:19baikielinkissue9580 messages
2010-08-14 19:17:18baikiecreate