This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Summary: "BuildApplet can destory the source file on Mac OS X"
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen, reowen
Priority: normal Keywords:

Created on 2002-01-18 22:14 by reowen, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (4)
msg8877 - (view) Author: Russell Owen (reowen) Date: 2002-01-18 22:14
If the name of the file dropped on BuildApplet is the right length, BuildApplet will work and then will delete the source file!!! For instance dropping a file named "Cvt cmm -> Igor data 2-0 long name.py" onto BuildApple first produces a working droplet with name: "Cvt cmm -> Igor data 2#7F2E4" and then the source file simply vanishes. It's really gone, too (or perhaps moved and renamed) -- a disk search doesn't turn it up anywhere.Making the file name significantly shorter causes everything to work normally. Making the file name significantly longer causes BuildApplet to exit immediately with no error message and nothing done. There seems to be a magic range of file name lengths that cause the source file to softly and silently vanish away.Configuration:- Mac OS X 10.1.2- MacPython 2.1.1 configured for Carbon- I have only one disk partition, formatted as Mac OS Extended, with tons of free space.Further details available on request, but I hope the problem is easily reproducible. I tried it many times on my Mac and it always did the same thing.I doubt the contents of the source file is relevant, but if it is, I do have a copy (with a shorter name!).-- Russell
msg8878 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-01-27 21:35
Logged In: YES 
user_id=45365

This turns out to be a very serious problem in the way OSX converts long filenames to FSSpecs. I'm taking the discussion to pythonmac-sig (for starters).
msg8879 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-02-05 22:10
Logged In: YES 
user_id=45365

An Apple person on pythonmac-sig suggested this is indeed an Apple problem (and a serious one too, therefore). I've submitted it to the Apple bug reporter as ID 2854931.
msg8880 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-08-18 21:58
Logged In: YES 
user_id=45365

Not really fixed, but at least detected. BuildApplet (or actually the underlying buildtools module) now detects the situation and refuses to continue. The user is told to rename the file to something more safe.
History
Date User Action Args
2022-04-10 16:04:54adminsetgithub: 35949
2002-01-18 22:14:25reowencreate