From bdf6f2ed0c755a01ec07b1611e9acb8fd4dea04f Mon Sep 17 00:00:00 2001 From: tomo Date: Sat, 24 Aug 2002 09:44:56 +0000 Subject: [PATCH] (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. --- src/casetab.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } } -- 1.7.10.4