diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-23 13:55:11 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-23 13:55:11 (GMT) |
commit | 9bc4690e7c3c81f5c85124dcb97707ec8d4aa8c9 (patch) | |
tree | 64b510dab9b50a67416b069216494d040d764a2f /Mac/scripts/binhextree.py | |
parent | 0a72e8d4d2a3dd1abd2d8cdac4cf1a10fd72f95e (diff) | |
download | cpython-9bc4690e7c3c81f5c85124dcb97707ec8d4aa8c9.zip cpython-9bc4690e7c3c81f5c85124dcb97707ec8d4aa8c9.tar.gz cpython-9bc4690e7c3c81f5c85124dcb97707ec8d4aa8c9.tar.bz2 |
Take care that filenames for .hqx files are ascii (no more mu's, etc)
Diffstat (limited to 'Mac/scripts/binhextree.py')
-rw-r--r-- | Mac/scripts/binhextree.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Mac/scripts/binhextree.py b/Mac/scripts/binhextree.py index a13aff5..e8597c8 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' |