Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problem with execl() and accentuated characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with execl() and accentuated characters



Thanks for your suggestion, but it doesn't work, even with the UTF-8 encoding.

 -- Arthur;

Le 26 févr. 05, à 02:00, David Duncan a écrit :

On Feb 25, 2005, at 07:54 PM, Arthur VIGAN wrote:

        result = CFStringGetCString(toolStringRef,
                                    app,
                                    length+1,
                                    kCFStringEncodingMacRoman);

The problems comes when the CFStringRef "toolStringRef" contains accentuated characters (such as é, è, à, ...): the C "app" string does not contain proper characters, so the call to execl() does nothing and returns with an error.

Wrong encoding. The command line expects UTF-8 encoded strings not MacRoman.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem with execl() and accentuated characters (From: Arthur VIGAN <email@hidden>)
 >Re: Problem with execl() and accentuated characters (From: David Duncan <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.