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: Problem in FSPathMakeRef(); ??



On 9/13/05 11:00 AM, darpan kamboj didst favor us with:

>  
> Hi all
> I  am using the following code for creating a directory.
> 
> OSStatus err;
> OSErr error;
> FSRef ref;
> const char *cCompletePath;
> err=FSPathMakeRef((const UInt8*)cCompletePath, &ref, NULL);
> 
> error=FSCreateDirectoryUnicode (&ref, pFileName.length(), (const UniChar*)
> pFileName.unicode(),  kFSCatInfoNone, NULL, NULL, NULL, NULL);
> 
> It works fine when the cCompletePath="/unique/created folders"
> It works fine when the path is in english characters. I have two hard disks
> attached with my system one of which is spanish. When the cCompletePath="/
> unique/created folders/åpplæ" then FSPathMakeRef() fails.
> 
> I want to create a folder which have spanis name "Ÿortåsdñ" under the Path
> cCompletePath="/unique/created folders/åpplæ"
> "åpplæ" is also a spanish named folder.
> 
> What should I have to do?

The above is pseudo code. How are you actually creating the path? As has
been discussed here multiple times lately (you do read this list, right?)
and as is documented (you do read documentation, right?), FSPathMakeRef
takes a UTF-8 POSIX path. Obviously you aren't using one. What's not obvious
is why not.

Larry

 _______________________________________________
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: 
 >Problem in FSPathMakeRef(); ?? (From: "darpan kamboj" <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.