https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67990
--- Comment #2 from Hubert Tong <hstong at ca dot ibm.com> --- POSIX.1-2024 has added a note permitting POSIX interfaces to exhibit "unusual behavior" for locales where <NUL> does not have the lowest primary weight in the collation ordering: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap07.html