• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with std::locale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem with std::locale (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: Setting up Subversion repositories in XCode 3.0
  • Next by Date: Re: thin linking: "file is not of required architecture"
  • Previous by thread: Re: Problem with std::locale
  • Next by thread: CVS and Warning: No xauth data...
  • Index(es):
    • Date
    • Thread