]> granicus.if.org Git - python/commitdiff
interpret utf-8 file names on OSX
authorJust van Rossum <just@letterror.com>
Thu, 9 Jan 2003 23:20:31 +0000 (23:20 +0000)
committerJust van Rossum <just@letterror.com>
Thu, 9 Jan 2003 23:20:31 +0000 (23:20 +0000)
Mac/Tools/IDE/Wapplication.py

index f78ef5e0a6cf5fb3369992435387f491cae9c19d..5ad5589ff18c5793fc521fe120d6d17e49610f74 100644 (file)
@@ -293,6 +293,8 @@ class Application(FrameWork.Application):
                        if done.has_key(path):
                                continue
                        name = string.strip(name)
+                       if os.name == "posix":
+                               name = unicode(name, "utf-8")
                        if name[-3:] == '---':
                                menu.addseparator()
                        elif isdir: