[New-bugs-announce] [issue19847] Setting the default filesystem-encoding

Sworddragon report at bugs.python.org
Sat Nov 30 23:29:52 CET 2013


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-encoding != locale. This is especially the case if working on a filesystem from an external media like an external hard disk drive. Operating on multiple media can also result in different filesystem-encodings.

It would be useful if the user can make his own checks and change the default filesystem-encoding if needed.

----------
components: IO
messages: 204853
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Setting the default filesystem-encoding
type: enhancement
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19847>
_______________________________________


More information about the New-bugs-announce mailing list