]> granicus.if.org Git - python/commitdiff
[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX
authorJust van Rossum <just@letterror.com>
Fri, 11 Jul 2003 07:36:49 +0000 (07:36 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 11 Jul 2003 07:36:49 +0000 (07:36 +0000)
Lib/posixpath.py

index 7f907ef519c1d48f4bd6228d7422993047b6e01a..efe83269dfb8044f43e7c4bd7edda69d8f542ab0 100644 (file)
@@ -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