Paul Eggert wrote: > malloc-gnu [test $ac_use_included_regex = yes] > +mbrtoc32-regular [test $ac_use_included_regex = yes] > memcmp [test $ac_use_included_regex = yes]
While this patch is super nice on the Gnulib side, I need to point out that there will be a problem when merging it back into glibc: The mbrtoc32 function of glibc is not "regular". Namely, in the BIG5-HKSCS encoding there are some multibyte characters that map to *two* Unicode characters. See tests/test-mbrtoc32-regular.c for details. This is visible in the glibc bugzilla: https://sourceware.org/bugzilla/show_bug.cgi?id=25734 https://sourceware.org/bugzilla/show_bug.cgi?id=30611 My vote to resolve this issue would be to declare BIG5-HKSCS unsupported as a locale encoding. This would also fix these two bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=24562 https://sourceware.org/bugzilla/show_bug.cgi?id=24563 Bruno
