diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_subst.c | 19 |
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) { |