Android NDK does not support std :: locale ()?

I am using std :: local () for MBS for WCS in the Android NDK.

But...

std::locale::global(std::locale("kor"))
std::locale::global(std::locale("ko"))
std::locale::global(std::locale("ko_KR"))
std::locale::global(std::locale("ko_KR.eucKr"))
std::locale::global(std::locale("ko_KR.euckr"))
std::locale::global(std::locale("ko_KR.EUCKR"))

All lead to failures.

and ... std::locale::global(std::locale("en_US.UTF-8"))also falls.

Is std::locale()Android NDK Supported ?

My STL library

+4
source share
1 answer

According to this, answer No.

There is no locale support in the C / library from native code, and this is intentional. As Elliot noted, your only hope is to use JNI to get the appropriate values.

+2
source

All Articles