Antoine Pitrou <pit...@free.fr> added the comment: > It is a de facto, not de jure standard: UTF-8 is how things are > typically stored. Other software (eg gnome file handling utilities) > makes this assumption. See eg > <http://www.cl.cam.ac.uk/~mgk25/unicode.html#linux>.
So should we specifically detect Linux? And under which conditions? When the encoding is detected to be "ASCII"? > But in Unix > there are no ultimate authorities: even if someone announced filenames > are utf-8 there will obviously continue to be many machines where in > practice they are not. POSIX is kind of an authority. Freedesktop.org could be another. LSB yet another. (all with different scopes obviously) > I'm not sure what you expect a technical solution at the OS level > would look like. It doesn't need to be technical. It could just be a convention (all filesystem paths, and other user-visible text such as environment variables etc., are utf-8 encoded). Although enforcing it technically would of course be safer. > That is probably worth doing. But having no locale can still happen, > and I think Python could handle that better, so the changes are > complimentary. How do you detect "no locale"? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13643> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com