You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
main-executable: use C.UTF_8 locale, not en_US
This commit is contained in:
@@ -644,9 +644,9 @@ int main(int argc, char **argv)
|
|||||||
/* this has to be done in the main executable, so might as well do it here*/
|
/* this has to be done in the main executable, so might as well do it here*/
|
||||||
init__r_debug();
|
init__r_debug();
|
||||||
|
|
||||||
// locale on android always behaves as en_US, and some apps might unbeknownst to them depend on that
|
// locale on android is always either C or C.UTF-8, and some apps might unbeknownst to them depend on that
|
||||||
// for correct functionality
|
// for correct functionality
|
||||||
setenv("LC_ALL", "en_US", 1);
|
setenv("LC_ALL", "C.UTF-8", 1);
|
||||||
|
|
||||||
struct jni_callback_data *callback_data = malloc(sizeof(struct jni_callback_data));
|
struct jni_callback_data *callback_data = malloc(sizeof(struct jni_callback_data));
|
||||||
callback_data->apk_main_activity_class = NULL;
|
callback_data->apk_main_activity_class = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user