From: tomo Date: Sat, 24 Aug 2002 09:44:56 +0000 (+0000) Subject: (complex_vars_of_casetab): If uppercase/lowercase is not defined for a X-Git-Tag: r21-2-46-utf-2000-0_19-1~2 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=bdf6f2ed0c755a01ec07b1611e9acb8fd4dea04f;p=chise%2Fxemacs-chise.git (complex_vars_of_casetab): If uppercase/lowercase is not defined for a character, don't put the identical conversion into the uppercase/lowercase table in UTF-2000. --- diff --git a/src/casetab.c b/src/casetab.c index 18afe95..3ec9792 100644 --- a/src/casetab.c +++ b/src/casetab.c @@ -566,7 +566,8 @@ complex_vars_of_casetab (void) { unsigned char lowered = tolower (i); - SET_TRT_TABLE_CHAR_1 (tem, i, lowered); + if (lowered != i) + SET_TRT_TABLE_CHAR_1 (tem, i, lowered); } #ifdef UTF2000 @@ -585,6 +586,7 @@ complex_vars_of_casetab (void) unsigned char flipped = (isupper (i) ? tolower (i) : (islower (i) ? toupper (i) : i)); - SET_TRT_TABLE_CHAR_1 (tem, i, flipped); + if (flipped != i) + SET_TRT_TABLE_CHAR_1 (tem, i, flipped); } }