regex: fix ignore-case Turkish bug
commit0c487ff1286660c4d572c3277e73ac6618ba832d
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2020 00:03:45 +0000 (23 17:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2020 00:04:42 +0000 (23 17:04 -0700)
treeb1d7838123bff9ea9bfd2d26aa9a4140d1557f56
parent800f530a9c19d8e0b36f3c128d9abba386d9db92
regex: fix ignore-case Turkish bug

* lib/regex_internal.c (build_wcs_upper_buffer):
Do not assume that converting single-byte character to upper
yields a single-byte character.  This is not true for Turkish,
where towupper (L'i') yields L'İ', which is not single-byte.
* tests/test-regex.c (main): Test for this bug.
ChangeLog
lib/regex_internal.c
tests/test-regex.c