From 6832f5d16e636bf4d0783c23c71a469f7c96330a Mon Sep 17 00:00:00 2001 From: Mis012 Date: Wed, 19 Jun 2024 18:04:05 +0200 Subject: [PATCH] main-executable: use C.UTF_8 locale, not en_US --- src/main-executable/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main-executable/main.c b/src/main-executable/main.c index d95e98fc..b9fa4369 100644 --- a/src/main-executable/main.c +++ b/src/main-executable/main.c @@ -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*/ 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 - 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)); callback_data->apk_main_activity_class = NULL;