From: Jack Jansen Date: Mon, 23 Oct 1995 13:55:11 +0000 (+0000) Subject: Take care that filenames for .hqx files are ascii (no more mu's, etc) X-Git-Tag: v1.4b1~517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bc4690e7c3c81f5c85124dcb97707ec8d4aa8c9;p=thirdparty%2FPython%2Fcpython.git Take care that filenames for .hqx files are ascii (no more mu's, etc) --- diff --git a/Mac/scripts/binhextree.py b/Mac/scripts/binhextree.py index a13aff594a0a..e8597c87cef3 100644 --- a/Mac/scripts/binhextree.py +++ b/Mac/scripts/binhextree.py @@ -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'