[issue767645] incorrect os.path.supports_unicode_filenames

Martin v. Löwis report at bugs.python.org
Sun Sep 12 18:36:12 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

> I think that supports_unicode_filenames is still useful to check if
> the filesystem API uses bytes (Linux, FreeBSD, Solaris, ...) or
> characters (Mac OS X, Windows). Mac OS X is a special case because
> the C API uses char* (byte string), but the filesystem encoding is
> fixed to utf-8 and it doesn't accept invalid utf-8 filenames. So I
> would like to say that supports_unicode_filenames should be True on
> Mac OS X (which was the initial request).

Sounds reasonable.

----------

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


More information about the Python-bugs-list mailing list