Please see this:

http://stackoverflow.com/questions/571359/how-do-i-set-the-proper-initial-locale-for-a-c-program-on-windows

It says:

At program startup, the global locale is the "C" or "*Classic*" locale. To 
set the global locale to the program's environment locale (which I guess is 
what you're asking), you thus write:

std::locale::global(std::locale(""));






On Thursday, March 7, 2013 6:49:12 PM UTC-6, Shri wrote:
>
> std::locale().name() and std::locale("").name() are both returning "C" on 
> a JellyBean phone, instead of the expected "En_US". Is it possible to get 
> to the user's locale from C++ code?
>
> Thanks,
> Shri
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to