From: Just van Rossum Date: Fri, 11 Jul 2003 07:36:49 +0000 (+0000) Subject: [ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX X-Git-Tag: v2.3c1~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4bf893952743a89f078915583b29594690dfa12;p=python [ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 7f907ef519..efe83269df 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -10,6 +10,7 @@ Some of this can actually be useful on non-Posix systems too, e.g. for manipulation of the pathname component of URLs. """ +import sys import os import stat @@ -416,4 +417,7 @@ symbolic links encountered in the path.""" return filename -supports_unicode_filenames = False +if sys.platform == "darwin": + supports_unicode_filenames = True +else: + supports_unicode_filenames = False