After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 434358 - g_regex_fetch_named() and g_regex_fetch_named_pos() are broken when G_REGEX_DUPNAMES is used
g_regex_fetch_named() and g_regex_fetch_named_pos() are broken when G_REGEX_D...
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on: 419376
Blocks:
 
 
Reported: 2007-04-29 13:57 UTC by Yevgen Muntyan
Modified: 2007-05-30 05:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (2.52 KB, patch)
2007-05-01 20:14 UTC, Yevgen Muntyan
none Details | Review
Fix (2.09 KB, patch)
2007-05-01 20:15 UTC, Yevgen Muntyan
none Details | Review

Description Yevgen Muntyan 2007-04-29 13:57:37 UTC
+++ This bug was initially created as a clone of Bug #419376 +++

g_regex_fetch_named() returns wrong result when DUPNAMES is used because it uses g_regex_get_string_number() instead of pcre_get_named_substring().
Comment 1 Matthias Clasen 2007-04-30 16:05:23 UTC
It would be really cool if you could provide a testcase in the form of a regex-test.c patch.
Comment 2 Yevgen Muntyan 2007-05-01 20:14:33 UTC
Created attachment 87356 [details] [review]
test case
Comment 3 Yevgen Muntyan 2007-05-01 20:15:32 UTC
Created attachment 87358 [details] [review]
Fix

Here you go.
Comment 4 Marco Barisione 2007-05-29 09:41:40 UTC
Fixed in SVN, please mark this bug as fixed.