diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-03-11 17:00:00 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-03-11 17:00:00 -0500 |
commit | 88a8487639527e04313c7c87f390e7a45f7c529a (patch) | |
tree | 25a75f045775af46775195141946480a9d3c0719 /src | |
parent | de4255c7cb09b683cbb6652962f56c31c35ffa52 (diff) | |
download | lynx-snapshots-88a8487639527e04313c7c87f390e7a45f7c529a.tar.gz |
snapshot of project "lynx", label 2-8rel_3
Diffstat (limited to 'src')
-rw-r--r-- | src/LYStrings.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/LYStrings.c b/src/LYStrings.c index 98696d9f..2111b918 100644 --- a/src/LYStrings.c +++ b/src/LYStrings.c @@ -1630,16 +1630,9 @@ PUBLIC char * SNACat ARGS3( ** Currently we enable new technique only for DOS/WINDOWS display charsets ** and also for EXP_8BIT_TOUPPER compilation symbol. */ -PUBLIC int UPPER8(int ch1, int ch2) +PUBLIC int UPPER8 ARGS2(int,ch1, int,ch2) { -#ifdef NOTUSED - /* Try case-Sensitive match for speed, but mostly for stability */ - /* while doing experiments with the remainder of this function. */ - if ((unsigned char)ch1==(unsigned char)ch2) - return(0); -#endif /* NOTUSED */ - /* case-insensitive match for us-ascii */ if ((unsigned char)ch1 < 128 && (unsigned char)ch2 < 128) return(TOUPPER(ch1) - TOUPPER(ch2)); @@ -1675,6 +1668,11 @@ PUBLIC int UPPER8(int ch1, int ch2) if ((uck1 > 0) && (uck2 > 0)) /* both replacement strings found */ return (strcasecomp(replace_buf1, replace_buf2)); + + /* check to be sure we have not lost any strange characters */ + /* which are not found in def7_uni.tbl but _equal_ in fact. */ + if ((unsigned char)ch1==(unsigned char)ch2) + return(0); /* match */ } } |