aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_subst.c
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-12 21:38:35 +0000
committerjozan <jozan@noemail.net>2020-11-12 21:38:35 +0000
commit560f737bc6920e72cf00602c8b70c93c4a146f00 (patch)
tree6bcba5bd821eef510c200ee9e6bd7b48d14b115c /src/c_subst.c
parentIn progress (diff)
downloadunixize-560f737bc6920e72cf00602c8b70c93c4a146f00.tar.gz
unixize-560f737bc6920e72cf00602c8b70c93c4a146f00.tar.bz2
unixize-560f737bc6920e72cf00602c8b70c93c4a146f00.tar.xz
unixize-560f737bc6920e72cf00602c8b70c93c4a146f00.tar.zst
unixize-560f737bc6920e72cf00602c8b70c93c4a146f00.zip
Update
FossilOrigin-Name: 3b6504148a041336ea6202ff6811be99ed8001a42631c4e302154f6c496d3452
Diffstat (limited to 'src/c_subst.c')
-rw-r--r--src/c_subst.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/c_subst.c b/src/c_subst.c
index 0291dc7..de09514 100644
--- a/src/c_subst.c
+++ b/src/c_subst.c
@@ -311,6 +311,25 @@ c_unicode_subst(char filename[])
);
c_unicode_subst(filename);
}
+ if (u_isucharset((unsigned char)*(p + 1), C_CHARSET_Y) == TRUE) {
+ *p = 'y';
+ memmove(
+ p + 1,
+ p + 2,
+ (strlen((const char*)p + 2) + 1) * sizeof(char)
+ );
+ c_unicode_subst(filename);
+ }
+ if (u_isucharset((unsigned char)*(p + 1), C_CHARSET_TH) == TRUE) {
+ *p = 't';
+ *(p + 1) = 'h';
+ c_unicode_subst(filename);
+ }
+ if (*(p + 1) == 0x9f) {
+ *p = 's';
+ *(p + 1) = 'z';
+ c_unicode_subst(filename);
+ }
}
if (*p == 0xce) {
if (*(p + 1) == 0xbc) {