Author vstinner
Recipients baikie, vstinner
Date 2010-08-13.22:31:58
SpamBayes Score 4.17666e-13
Marked as misclassified No
Message-id <201008140031.52221.victor.stinner@haypocalc.com>
In-reply-to <1281724582.16.0.0794411907378.issue9580@psf.upfronthosting.co.za>
Content
Le vendredi 13 août 2010 20:36:22, vous avez écrit :
> The CS_PATH variable is a colon-separated list of directories ("the value
> for the PATH environment variable that finds all standard utilities"), so
> the file system encoding is certainly correct there.

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)?

> I don't see any reference to an encoding in the POSIX spec for confstr().

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).
History
Date User Action Args
2010-08-13 22:32:01vstinnersetrecipients: + vstinner, baikie
2010-08-13 22:32:00vstinnerlinkissue9580 messages
2010-08-13 22:31:59vstinnercreate