[Pythonmac-SIG] bug in MacPython 2.1.1 BuildApplet -- can trash files!

Russell E Owen owen@astro.washington.edu
Thu, 17 Jan 2002 13:28:55 -0800


If the name of the file dropped on BuildApplet (MacPython 2.1.1 configured for Carbon) is the right length, BuildApplet will work and then will delete the source file!!!

For instance:
"Cvt cmm -> Igor data 2-0 long name.py"
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.

I suspect the file name has to be longer than Mac OS classic allows. On the other hand, REALLY long file names simply cause BuildApplet to quit instantly without doing anything. So there's some magic length or range of lengths that causes the problem.

I just lost some work this way and so wanted to warn others.

Regards,

-- Russell