[Python-bugs-list] [ python-Bugs-706592 ] Crbon.File.FSSpec should accept non-existing pathnames

SourceForge.net noreply@sourceforge.net
Tue, 25 Mar 2003 08:37:42 -0800


Bugs item #706592, was opened at 2003-03-19 23:55
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=706592&group_id=5470

Category: Macintosh
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: Crbon.File.FSSpec should accept non-existing pathnames

Initial Comment:
Carbon.File.FSSpec currently doesn't accept non-existing pathnames.
This can be fixed in a way similar to what EasyDialogs.AskFileForSave uses, I think.

----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2003-03-25 17:37

Message:
Logged In: YES 
user_id=45365

Sort of. If the user wants an fsspec back you need to construct it. The difficult bit is getting the MacRoman (or whatever the local convention is)/utf-8 handling right. And then there's the 31-char limit for FSSpec filenames, which OSX handles with magic under the hood (but for non-existent files we don't have to worry about this).

But: if you're willing to do a 90% fix (say, by requiring ASCII in the last part of the filename): be my guest!

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2003-03-25 15:48

Message:
Logged In: YES 
user_id=6656

I know, you posted this after a complaint from me :-)

It seems to me that the hacks AskFileForSave perpetrates are
going the other way, from FSSpec of absent file to pathname.
 Can it be done backwards?  I guess pain comes from not
being able to call os.path.split in C...

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2003-03-25 15:43

Message:
Logged In: YES 
user_id=45365

I re-submitted this by popular demand. And, indeed, the logic could be similar to what AskFileForSave does (even though that is not 100% correct),
but this code has to be in C:-(

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2003-03-25 15:38

Message:
Logged In: YES 
user_id=6656

This would seem to be a dup of 585923 which is closed, fwiw.

I don't understand the comment about EasyDialogs.AskFileForSave.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=706592&group_id=5470