diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-09-23 18:57:57 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-09-23 19:56:24 -0700 |
commit | 016e590a8198009bce0e1078f6d4c7e037e2df3c (patch) | |
tree | 65f7540d987aa52c0a74e4462c613f1e136d8291 /NEWS | |
parent | c6b0b7df3a4824b9bd3ee2bb96f96ab6b1a7cb76 (diff) | |
download | grep-016e590a8198009bce0e1078f6d4c7e037e2df3c.tar.gz |
grep: fix more Turkish-eyes bugs
Fix more bugs recently uncovered by Norihiro Tanaka (Bug#43577).
* NEWS: Mention new bug report.
* src/grep.c (ok_fold): New static var.
(setup_ok_fold): New function.
(fgrep_icase_charlen): Reject single-byte characters
if they match some multibyte characters when ignoring case.
This part of the patch is partly derived from
<https://bugs.gnu.org/43577#14>, which means it is:
Co-authored-by: Norihiro Tanaka <noritnk@kcn.ne.jp>
(main): Call setup_ok_fold if ok_fold might be needed.
* src/searchutils.c (kwsinit): With the grep.c changes,
this code can now revert to classic 7th Edition Unix style;
aborting would be wrong.
* tests/turkish-eyes: Add tests for these bugs.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ GNU grep NEWS -*- outline -*- characters. For example, 'LC_ALL=tr_TR.utf8 grep -i i' no longer dumps core merely because 'i' matches 'İ' (U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE) in Turkish when ignoring case. - [Bug#43577 introduced in grep 3.4] + [Bug#43577 introduced partly in grep 2.28 and partly in grep 3.4] A performance regression with -E and many patterns has been mostly fixed. "Mostly" as there is a performance tradeoff between Bug#22357 and Bug#40634. |