Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HFS Alias of a Hebrew (right-to-left) POSIX pathname?



On 26.10.2005 15:06, "Jonathan del Strother" <email@hidden>
wrote:

> I have a unix-style file path as a CFStringRef, and need the HFS
> alias for that file.

  What is an HFS alias? I mean, CFURLGetFSRef() followed by FSNewAlias() is
the usual way to convert a POSIX file path into an alias.

> Works great for left-to-right pathnames, including Chinese, Japanese,
> etc. However, it falls over for Hebrew.

  What exactly doesn't work, is it CFURLCopyFileSystemPath(), or something
else?

> For debugging, it would help if I could test whether Carbon thinks
> that the HFS path exists - but I can't figure out how to do that.  Is
> there a FS function to test whether a file exists, given an HFS-style
> filename?

  CFURLCreateWithString(), then CFURLGetFSRef(). Or FSPathMakeRef() if
that's raw bytes, not a CFString.

> Any suggestions on working with right-to-left HFS paths would be
> greatly appreciated...

  Also, you can drag the file into a Terminal window to see what the system
thinks about its path.

- WBR, Alexey Proskuryakov


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >HFS Alias of a Hebrew (right-to-left) POSIX pathname? (From: Jonathan del Strother <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.