On Jan 14, 2011, at 3:20 PM, Yoshiyuki Hasegawa wrote:
> I am taking pains with obtaining fileName including two byte character in switch to FSRef.
No time to write a code example for you but there is one thing I noticed in the posted code:
The code is using pascal strings. Pascal strings will not work for fileNames that require unicode. In addition to switching to FSRefs ( which avoids all the issues with FSSpecs ), the code also needs to use CFStrings ( or their Cocoa NSString equivalent if writing Objective-C ) which automatically handle unicode.
Brian S