]> Savannah Git Hosting - gnulib.git/commit
regex: treat [x] as x if x is a unibyte encoding error
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jan 2016 08:55:44 +0000 (00:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jan 2016 08:56:07 +0000 (00:56 -0800)
commit2b34f389a8a9a6ebfd514560369d91c9f6de7751
tree65515a1b5785fa3a5143c5db1ef3d44441d35ae7
parentdfda61d5cb2f6dd70f4b569ebda1b628ca624fd6
regex: treat [x] as x if x is a unibyte encoding error

Problem reported by Aharon Robbins in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
* lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
(build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
ChangeLog
lib/regcomp.c