summaryrefslogtreecommitdiff
path: root/core/src/xmake/string
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-17 18:48:12 +0300
committerSaikari <[email protected]>2026-01-17 18:48:12 +0300
commit6ace7f776cd21b91323e00d1bfc61f6722a7961d (patch)
treeb754839f1f5c3a5f0eb3dd88464c87e74cffb5ba /core/src/xmake/string
parent69c0e3587353d67ee6bbf933b89c8b476d719748 (diff)
Try to prioritize "en_US.UTF-8"
Diffstat (limited to 'core/src/xmake/string')
-rw-r--r--core/src/xmake/string/case.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/string/case.c b/core/src/xmake/string/case.c
index fc6d5f84d..1bf1c022d 100644
--- a/core/src/xmake/string/case.c
+++ b/core/src/xmake/string/case.c
@@ -118,9 +118,9 @@ static tb_bool_t xm_string_case_unicode(lua_State* lua, tb_char_t const* str, tb
}
#else
// POSIX Thread-Safe Implementation
- locale_t new_loc = newlocale(LC_CTYPE_MASK, "UTF-8", (locale_t)0);
+ locale_t new_loc = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", (locale_t)0);
if (!new_loc) {
- new_loc = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", (locale_t)0);
+ new_loc = newlocale(LC_CTYPE_MASK, "UTF-8", (locale_t)0);
}
if (new_loc) {