]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Take care that filenames for .hqx files are ascii (no more mu's, etc)
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 23 Oct 1995 13:55:11 +0000 (13:55 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 23 Oct 1995 13:55:11 +0000 (13:55 +0000)
Mac/scripts/binhextree.py

index a13aff594a0a61f701ebee0ec9ac0e359c8f4e52..e8597c87cef3e1d57e2217d02cfe84e7c7798104 100644 (file)
@@ -57,7 +57,14 @@ def hexbincwprojects(creator):
                return
        for fss in project_files[creator]:
                srcfile = fss.as_pathname()
-               dstfile = srcfile + '.hqx'
+               
+               if srcfile[-1] == 'ยต':
+                       dstfile = srcfile[:-1]+'mu.hqx'
+               elif ord(srcfile[-1]) >= 128:
+                       dstfile = srcfile[:-1]+`ord(srcfile[-1])`+'.hqx'
+               else:
+                       dstfile = srcfile + '.hqx'
+                       
                if os.path.exists(dstfile) and \
                                os.stat(dstfile)[8] > os.stat(srcfile)[8]:
                        print 'Skip', dstfile,'- Up-to-date'