summaryrefslogtreecommitdiff
path: root/core/src/xmake/string
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-17 03:26:15 +0300
committerSaikari <[email protected]>2026-01-17 03:26:15 +0300
commit424d7de3637812c82adbc2cd0419c842b1991be4 (patch)
tree1748b21304db85acaa51573d548b5c9e414899d7 /core/src/xmake/string
parent5af9fbbb34c797bfa626c6f490482751a56c95ad (diff)
Assume we can skip EMOJIS?
Diffstat (limited to 'core/src/xmake/string')
-rw-r--r--core/src/xmake/string/case.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/xmake/string/case.c b/core/src/xmake/string/case.c
index e8369f04b..aeadc4e62 100644
--- a/core/src/xmake/string/case.c
+++ b/core/src/xmake/string/case.c
@@ -79,7 +79,8 @@ static tb_int_t xm_string_case(lua_State* lua, tb_bool_t lower) {
tb_uint32_t* p = (tb_uint32_t*)dst_data;
tb_size_t n = (tb_size_t)dst_size / 4;
while (n--) {
- *p = (tb_wchar_t)(lower? towlower((wint_t)*p) : towupper((wint_t)*p));
+ if (*p < 0x10000)
+ *p = (lower? towlower((wint_t)*p) : towupper((wint_t)*p));
p++;
}
#endif