G_REGEX_OPTIMIZE causes incorrect regex behaviour
Running this code with Glib 2.74.1 (Debian bookworm) minimal.c gives:
many stars, optimised = 0
many_stars, default = 1
afew_stars, optimised = 1
afew_stars, default = 1
The regex appears to not match any string past a certain length. Haven't checked whether this is a PCRE2 issue or a GLib issue yet, since I'm already a fair way into this (starting from 'why does my shell not have a prompt set?', and looking at what gnome-session was doing to load in my environment).
Edited by James Haggerty