Bug#1118572: libpcre2-8-0: pcre2 10.47 behaviour change: different error for ^(a)\g{3
Matthew Vernon
matthew at debian.org
Wed Oct 22 11:33:15 BST 2025
Hi,
Sorry, my MUA rather mangled that.
> If you look at the changes to testdata/testoutput2 you'll see at lines
> 7855 and 7855 that the error number and text for
> /^(a)\g{3/
>
> have changed from:
> Failed: error 157 at offset 6: \g is not followed by a braced, angle-
> bracketed, or quoted name/number or by a plain number
> here: ^(a)\g |<-->| {3
>
> to:
> Failed: error 219 at offset 8: syntax error in subpattern number
> (missing terminator?)
> here: ^(a)\g{3 |<--|
> Because there's a new and more-specific
> error code PCRE2_ERROR_MISSING_NUMBER_TERMINATOR
>
> in the error case that was previously just handled as
> PCRE2_ERROR_BACKSLASH_G_SYNTAX
> So I think this will need fixing in the glib2 build-time test suite?
Is I think better.
More information about the pkg-gnome-maintainers
mailing list