Re: Problem with std::locale
Re: Problem with std::locale
- Subject: Re: Problem with std::locale
- From: Chris Espinosa <email@hidden>
- Date: Tue, 22 Apr 2008 14:39:41 -0700
On Apr 21, 2008, at 1:34 PM, Dave Carrigan wrote: The following code is not giving expected results. I would expect that any locale that can be set using setlocale() could be set by instantiating a locale, but in fact, the only locales that I can instantiate are C and POSIX.
std::locale is not the primary or recommended way to get information about the user's language and orthography in Mac OS X user applications. When it's used at all it's used only by command-line programs run by developers or the Unix/Linux/open source community.
Note that the POSIX documentation states: "The locale argument is a pointer to a character string containing the required setting of category. The contents of this string are implementation-dependent. " In the Mac OS X implementation, we don't generally define any categories other than the required POSIX and C.
Core Foundation has the functions you need for access to user local-language preferences and customization. See CFLocaleRef and its associated functions for details.
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden