On Sep 6, 2009, at 4:26 PM, Jens Alfke wrote:

On Sep 6, 2009, at 1:26 PM, Greg Guerin wrote:

Try using a pathname that contains only Latin alphabet characters (for reference, the original chars of the volume-name are Thai: \u0e40\u0e21\u0e48\u0e19). If necessary, create and mount a disk- image in order to get only Latin chars.

I don't think it has anything to do with the characters in the filename:

        NSLog(@"path = %@", [@"/etc" stringByStandardizingPath]);
results in
        path = /etc
when the result ought to be "/private/etc".

The same thing happens with a custom symlink I created, like "/ Code", which links to "/Volumes/snoog/Code":

        NSLog(@"path = %@", [@"/Code/Murky" stringByStandardizingPath]);
results in
        path = /Code/Murky

Not sure about the second example, but the first example has been a problem for a long time:

rdar://problem/6121719 -[NSString stringByResolvingSymlinksInPath] is contradictory and untrustworthy

http://lapcatsoftware.com/rdar/6121719/index.html

(Note that stringByStandardizingPath is documented as calling stringByResolvingSymlinksInPath.)

-Jeff

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to