]> granicus.if.org Git - python/commit
Refuse to run if the last bit of the destination path contains a # character.
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 18 Aug 2002 21:57:09 +0000 (21:57 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 18 Aug 2002 21:57:09 +0000 (21:57 +0000)
commit58ba80a6a66d74f7b9dcc40fb8c08a2201749194
tree1f83c43b6ea4b3a7453ca76fdf5c8229578c4491
parentf2e45dd9dde5fa45afeb2bb42660a5a1a2d199d5
Refuse to run if the last bit of the destination path contains a # character.
This is a silly workaround for a rather serious bug in MacOSX: if you take
a long filename and convert it to an FSSpec the fsspec gets a magic
cooky (containing a #, indeed). If you then massage the extension of this
fsspec and convert back to a pathname you may end up referring to the
same file. This could destroy your sourcefile. The problem only occcurs
in MacPython-OS9, not MacPython-OSX (I think).

Closes bug #505562.
Mac/Lib/buildtools.py