From faa0f0cce74ad9ff2998461294d24ff41541a8a0 Mon Sep 17 00:00:00 2001 From: jozan Date: Thu, 12 Nov 2020 20:48:38 +0000 Subject: In progress FossilOrigin-Name: 86100f797e85a905ffed6cd87165987fdc03f60e0cffdb37d29b94c8b69acda7 --- src/c_subst.c | 9 +++++++++ src/c_subst.h | 2 ++ 2 files changed, 11 insertions(+) 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); -- cgit v1.2.3