main-executable: use C.UTF_8 locale, not en_US

This commit is contained in:
Mis012
2024-06-19 18:04:05 +02:00
parent 85a26e4de9
commit 6832f5d16e

View File

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