Fix the case when high letters becomes missing from fold tables
for some locales
This commit is contained in:
parent
fe681e1955
commit
565d58edd2
@ -309,10 +309,9 @@ settables(gflags)
|
|||||||
Rascii[i] = 255 - i + 1;
|
Rascii[i] = 255 - i + 1;
|
||||||
else
|
else
|
||||||
Rascii[i] = 255 - i;
|
Rascii[i] = 255 - i;
|
||||||
if (islower(i)) {
|
if (islower(i))
|
||||||
Ftable[i] = Ftable[toupper(i)];
|
;
|
||||||
RFtable[i] = RFtable[toupper(i)];
|
else if (REC_D >= 'A' && REC_D <= 'Z' && i < 'a' && i > REC_D) {
|
||||||
} else if (REC_D >= 'A' && REC_D <= 'Z' && i < 'a' && i > REC_D) {
|
|
||||||
Ftable[i] = i + 1;
|
Ftable[i] = i + 1;
|
||||||
RFtable[i] = Rascii[i] - 1;
|
RFtable[i] = Rascii[i] - 1;
|
||||||
} else {
|
} else {
|
||||||
@ -335,6 +334,12 @@ settables(gflags)
|
|||||||
else
|
else
|
||||||
dtable[i] = 0;
|
dtable[i] = 0;
|
||||||
}
|
}
|
||||||
|
for (i = 0; i < NBINS; i++) {
|
||||||
|
if (islower(i)) {
|
||||||
|
Ftable[i] = Ftable[toupper(i)];
|
||||||
|
RFtable[i] = RFtable[toupper(i)];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rascii[REC_D] = RFtable[REC_D] = REC_D;
|
Rascii[REC_D] = RFtable[REC_D] = REC_D;
|
||||||
if (isupper(REC_D))
|
if (isupper(REC_D))
|
||||||
|
Loading…
Reference in New Issue
Block a user