From cb0b8461d5e4a239116a3246beff73ac7f7563d8 Mon Sep 17 00:00:00 2001 From: jozan Date: Wed, 11 Nov 2020 20:17:32 +0000 Subject: In progress FossilOrigin-Name: b805f8e1d50c1dc8dbdc693464f08f0c957302aee4cdb779ed68d34cd8abb815 --- src/c_subst.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'src/c_subst.c') diff --git a/src/c_subst.c b/src/c_subst.c index b589552..4b410ab 100644 --- a/src/c_subst.c +++ b/src/c_subst.c @@ -204,21 +204,25 @@ c_unicode_subst(char filename[]) p = filename; while (*p != 0x00) { - if ( - u_ischarset(*p, C_CHARSET_A_MAJ) == TRUE || - u_ischarset(*p, C_CHARSET_A_MIN) == TRUE - ) { - *p = 'a'; - memmove(p + 1, p + 2, (strlen(p + 2) + 1) * sizeof(char)); - c_unicode_subst(filename); - } - if ( - u_ischarset(*p, C_CHARSET_O_MAJ) == TRUE || - u_ischarset(*p, C_CHARSET_O_MIN) == TRUE - ) { - *p = 'o'; - memmove(p + 1, p + 2, (strlen(p + 2) + 1) * sizeof(char)); - c_unicode_subst(filename); + if (*p == -61) { + if ( + u_ischarset(*p, C_CHARSET_A_MAJ) == TRUE || + u_ischarset(*p, C_CHARSET_A_MIN) == TRUE + ) { + printf(">>>>{%hhd}\n", *p); + printf(">>>>{%hhd}\n", *(p + 1)); + *p = 'a'; + memmove(p + 1, p + 2, (strlen(p + 2) + 1) * sizeof(char)); + c_unicode_subst(filename); + } + if ( + u_ischarset(*p, C_CHARSET_O_MAJ) == TRUE || + u_ischarset(*p, C_CHARSET_O_MIN) == TRUE + ) { + *p = 'o'; + memmove(p + 1, p + 2, (strlen(p + 2) + 1) * sizeof(char)); + c_unicode_subst(filename); + } } p++; } -- cgit v1.2.3