[Python-3000] Help on text editors

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Thu Sep 7 23:22:31 CEST 2006


Antoine Pitrou <solipsis at pitrou.net> writes:

> By the way, you should be aware that filesystems have their own
> encodings which can different from the default system encoding
> (depending on how it's declared in /etc/fstab). I don't know of a
> simple way to retrieve the encoding for a given directory (except
> trying to find out the filesystem mounting point and parsing
> /etc/fstab... *sigh*). This can be annoying when handling non-ascii
> filenames.

I believe the intent is to set up all filesystems to use the same
encoding externally. The encoding setting exists only for some
filesystems, especially those which use UTF-16 internally, where
it would be impossible to physically store filenames in the default
system encoding, or where the filesystem is likely to be created
on a different system with a different encoding.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list