aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-12 20:48:38 +0000
committerjozan <jozan@noemail.net>2020-11-12 20:48:38 +0000
commitfaa0f0cce74ad9ff2998461294d24ff41541a8a0 (patch)
treea0a19580390807e55ca3878f42eabaa4f9ddcac9
parentMore unicode to come (diff)
downloadunixize-faa0f0cce74ad9ff2998461294d24ff41541a8a0.tar.gz
unixize-faa0f0cce74ad9ff2998461294d24ff41541a8a0.tar.bz2
unixize-faa0f0cce74ad9ff2998461294d24ff41541a8a0.tar.xz
unixize-faa0f0cce74ad9ff2998461294d24ff41541a8a0.tar.zst
unixize-faa0f0cce74ad9ff2998461294d24ff41541a8a0.zip
In progress
FossilOrigin-Name: 86100f797e85a905ffed6cd87165987fdc03f60e0cffdb37d29b94c8b69acda7
-rw-r--r--src/c_subst.c9
-rw-r--r--src/c_subst.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/c_subst.c b/src/c_subst.c
index 31c2cde..0291dc7 100644
--- a/src/c_subst.c
+++ b/src/c_subst.c
@@ -302,6 +302,15 @@ c_unicode_subst(char filename[])
);
c_unicode_subst(filename);
}
+ if (u_isucharset((unsigned char)*(p + 1), C_CHARSET_I) == TRUE) {
+ *p = 'i';
+ memmove(
+ p + 1,
+ p + 2,
+ (strlen((const char*)p + 2) + 1) * sizeof(char)
+ );
+ c_unicode_subst(filename);
+ }
}
if (*p == 0xce) {
if (*(p + 1) == 0xbc) {
diff --git a/src/c_subst.h b/src/c_subst.h
index e698632..124dcf5 100644
--- a/src/c_subst.h
+++ b/src/c_subst.h
@@ -67,6 +67,8 @@
"\x88\x89\x8a\x8b\xa8\xa9\xaa\xab"
#define C_CHARSET_U \
"\x99\x9a\x9b\x9c\xb9\xba\xbb\xbc"
+#define C_CHARSET_I \
+ "\x8c\x8d\x8e\x8f\xac\xab\xac\xad"
struct lfiles_s* c_subst_filenames(struct lfiles_s*, const bool_t,
const bool_t, const unsigned char);