diff options
| author | Saikari <[email protected]> | 2026-01-17 20:07:35 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-01-17 20:07:35 +0300 |
| commit | 77c48ebd4820329582f9e41d26de648445c692a8 (patch) | |
| tree | 538fbdbc9116ef04bc9fa8303a0d5a3233de3117 | |
| parent | a26410744069a9dfd1ffa6f6e362ed1633e2b650 (diff) | |
re
| -rw-r--r-- | core/src/xmake/string/case.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/xmake/string/case.c b/core/src/xmake/string/case.c index c6622145a..aee3647e0 100644 --- a/core/src/xmake/string/case.c +++ b/core/src/xmake/string/case.c @@ -167,6 +167,9 @@ static tb_bool_t xm_string_case_unicode(lua_State* lua, tb_char_t const* str, tb // POSIX Thread-Safe Implementation (Linux/macOS/FreeBSD/DragonFly) locale_t new_loc = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", (locale_t)0); if (!new_loc) { + new_loc = newlocale(LC_CTYPE_MASK, "C.UTF-8", (locale_t)0); + } + if (!new_loc) { new_loc = newlocale(LC_CTYPE_MASK, "UTF-8", (locale_t)0); } |
