Message117272
| Author |
pitrou |
| Recipients |
Arfrever, amaury.forgeotdarc, lemburg, pitrou, vstinner |
| Date |
2010年09月24日.12:08:27 |
| SpamBayes Score |
1.4550099e-07 |
| Marked as misclassified |
No |
| Message-id |
<1285330113.79.0.0115943788085.issue9630@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>It is not possible to set Py_FilesystemDefaultEncoding before loading
>the first module. initfsencoding() loads codecs and encodings modules to
>check the codec name.
Not sure it's related, but there seems to be a bug:
$ ./python -c "import sys; print(sys.getfilesystemencoding())"
utf-8
$ LC_CTYPE=latin1 ./python -c "import sys; print(sys.getfilesystemencoding())"
ascii
$ LC_CTYPE=fr_FR:iso8859-1 ./python -c "import sys; print(sys.getfilesystemencoding())"
ascii |
|