summaryrefslogtreecommitdiff
path: root/posix/regex_internal.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-11-19 07:18:32 +0000
committerUlrich Drepper <drepper@redhat.com>2003-11-19 07:18:32 +0000
commit3ee363e23115e63f8dcc34bf5b7bd5e1a084635c (patch)
treec825366f4549a27f0d4c44301821fa5b0b208990 /posix/regex_internal.c
parentc9002c1b7a648fe49b8472d6dc6724c78fa1329f (diff)
Update.
2003-11-18 Ulrich Drepper <drepper@redhat.com> * posix/regexec.c (get_subexp): Adter calling get_subexp_seb reload buf and bkref_str. Little optimization by avoiding memcmp. 2003-11-14 David Mosberger <davidm@hpl.hp.com>
Diffstat (limited to 'posix/regex_internal.c')
-rw-r--r--posix/regex_internal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/regex_internal.c b/posix/regex_internal.c
index c1605a0393..1da5f7040a 100644
--- a/posix/regex_internal.c
+++ b/posix/regex_internal.c
@@ -519,6 +519,8 @@ re_string_reconstruct (pstr, idx, eflags, newline)
mbstate_t cur_state;
wchar_t wc2;
+ /* XXX Don't use mbrtowc, we know which conversion
+ to use (UTF-8 -> UCS4). */
memset (&cur_state, 0, sizeof (cur_state));
if (mbrtowc (&wc2, p, raw + offset - p, &cur_state)
== raw + offset - p)