summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-07-11 07:36:49 (GMT)
committerJust van Rossum <just@letterror.com>2003-07-11 07:36:49 (GMT)
commitc4bf893952743a89f078915583b29594690dfa12 (patch)
tree916feccb86f2a6a0fb7ce16bb85a4c93569bc431 /Lib/posixpath.py
parentef6573e52946c70778e29e3b33d61a8a0c6e4052 (diff)
downloadcpython-c4bf893952743a89f078915583b29594690dfa12.zip
cpython-c4bf893952743a89f078915583b29594690dfa12.tar.gz
cpython-c4bf893952743a89f078915583b29594690dfa12.tar.bz2
[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 7f907ef..efe8326 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