4 ms·
getfilesystemencoding() is unreliable on Linux has linux has no file system encoding. It just returns the first match of LC_ALL, LC_CTYPE, LANG (not sure in wh
by the_mitsuhiko 13y ago
getfilesystemencoding() is unreliable on Linux has linux has no file system encoding. It just returns the first match of LC_ALL, LC_CTYPE, LANG (not sure in which order).
- pilif 13y agoI wouldn't call it unreliable then because whatever LC_CTYPE is set to is what the user expects their file names to be interpreted as. If the contents of LC_CTYPE is wrong for a particular file name, at least you get consistency between your python program and everything else on the system.