[issue19847] Setting the default filesystem-encoding

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: Follow-up: the PEP 538 (bpo-28180) and PEP 540 (bpo-29240) have been accepted and implemented in Python 3.7. Python 3.7 will now use UTF-8 by default for the POSIX locale, and the encoding can be forced to UTF-8 using -X utf8 option. -- _

[issue19847] Setting the default filesystem-encoding

2013-12-13 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #19977 as a follow up of this one: "Use surrogateescape error handler for sys.stdout on UNIX for the C locale". -- ___ Python tracker _

[issue19847] Setting the default filesystem-encoding

2013-12-13 Thread STINNER Victor
STINNER Victor added the comment: I'm closing this issue as invalid for the same reason than I closed the issue #19846: http://bugs.python.org/issue19846#msg205675 -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue19847] Setting the default filesystem-encoding

2013-12-12 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #19846. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread Sworddragon
Sworddragon added the comment: > This idea was already proposed in issue #8622, but it was a big fail. Not completely: If your locale is utf-8 and you want to operate on an utf-8 filesystem all is fine. But what if you want then to operate on a ntfs (non-utf-8) partition? As I know there is no

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: "It is nice that you could fixed the documentation due to this report but this was just a sideeffect - so closing this report and moving it to "Documentation" was maybe wrong." Oh sorry, I read the issue too quickly, I stopped at the first sentence. I reopen

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I specified the wrong issue number in my commits.) New changeset b231e0c3fd26 by Victor Stinner in branch '3.3': Issue #19728: Fix sys.getfilesystemencoding() documentation http://hg.python.org/cpython/rev/b231e0c3fd26 New changeset e3c48bddf621 by Victo

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread Sworddragon
Sworddragon added the comment: It is nice that you could fixed the documentation due to this report but this was just a sideeffect - so closing this report and moving it to "Documentation" was maybe wrong. -- ___ Python tracker

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: Code in Python 3.4. initfsencoding(): http://hg.python.org/cpython/file/e3c48bddf621/Python/pythonrun.c#l965 get_locale_encoding(): http://hg.python.org/cpython/file/e3c48bddf621/Python/pythonrun.c#l250 -- ___ Pytho

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: I fixed the documentation, thanks for your report! -- assignee: -> docs@python components: +Documentation -IO nosy: +docs@python resolution: -> fixed status: open -> closed versions: +Python 3.4 ___ Python tracker

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: "sys.getfilesystemencoding() says for Unix: On Unix, the encoding is the user’s preference according to the result of nl_langinfo(CODESET), or 'utf-8' if nl_langinfo(CODESET) failed." Oh, this documentation is wrong since at least Python 3.2: if nl_langinfo(C

[issue19847] Setting the default filesystem-encoding

2013-11-30 Thread Sworddragon
New submission from Sworddragon: sys.getfilesystemencoding() says for Unix: On Unix, the encoding is the user’s preference according to the result of nl_langinfo(CODESET), or 'utf-8' if nl_langinfo(CODESET) failed. In my opinion relying on the locale environment is risky since filesystem-enco