* lib/regex_internal.c (re_string_reconstruct): Handle
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Sep 2006 05:25:11 +0000 (05:25 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Sep 2006 05:25:11 +0000 (05:25 +0000)
commit331f6ee713f7038d6d1a1c0451016c8aaab6a079
tree28655350a395b2b2c172125ecc21efce31c9daaf
parentbe4552e7ed93177ecdac86f63f185ddd43a5e925
* lib/regex_internal.c (re_string_reconstruct): Handle
offset < pstr->valid_raw_len && pstr->offsets_needed case.
Ensure no bytes read before raw_mbs array.  Pass a saved copy of
pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
re_string_context_at.
* m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
now requires it.
(gl_PREREQ_REGEX): Don't check for locale.h any more, since
gl_REGEX now does it for us.
(gl_REGEX): Add test taken from
http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
lib/ChangeLog
lib/regex_internal.c
m4/ChangeLog
m4/regex.m4