]> Savannah Git Hosting - gnulib.git/commit
dfa: fix bug with ‘.’ and UTF-8 Hangul Syllables
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 May 2022 06:23:35 +0000 (23:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 May 2022 06:25:43 +0000 (23:25 -0700)
commitb19a10775e54f8ed17e3a8c08a72d261d8c26244
tree3babf016d1cc498afd1cec9952b5eb56030122d9
parentefa0065f1682f53fb15ad427555ddedec6ec51eb
dfa: fix bug with ‘.’ and UTF-8 Hangul Syllables

This fixes a bug introduced in 2019-12-18T05:41:27Z!eggert@cs.ucla.edu,
an earlier patch that fixed dfa.c to not match invalid UTF-8.
Unfortunately that patch had a couple of typos when dfa.c is
matching against the regular expression ‘.’ (dot).  One typo
caused dfa.c to incorrectly reject the valid UTF-8 sequences
(ED)(90-9F)(80-BF) corresponding to U+D400 through U+D7FF, which
are some Hangul Syllables and Hangul Jamo Extended-B.  The other
typo caused dfa.c to incorrectly reject the valid sequences
(F4)(88-8F)(80-BF)(80-BF) which correspond to U+108000 through
U+10FFFF (Supplemental Private Use Area plane B).
* lib/dfa.c (utf8_classes): Fix typos.
* tests/test-dfa-match.sh: Test the fix.
ChangeLog
lib/dfa.c
tests/test-dfa-match.sh