I did ask on android-ndk and was told that the NDK does not support
locales. Will do locale processing in Java code.


On Fri, Mar 8, 2013 at 7:15 AM, bob <b...@coolfone.comze.com> wrote:

> 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/QyQKcz_Plg8/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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