* tests/test-fnmatch.c (main): In a GB18030 locale, test the towupper()
mapping of 'ö', not of 'ü'.
+2023-07-23 Bruno Haible <bruno@clisp.org>
+
+ fnmatch tests: Avoid a test failure on FreeBSD.
+ * tests/test-fnmatch.c (main): In a GB18030 locale, test the towupper()
+ mapping of 'ö', not of 'ü'.
+
2023-07-23 Bruno Haible <bruno@clisp.org>
fnmatch: Work around bugs on FreeBSD, NetBSD, Solaris, Cygwin, Android.
mbstate_t state;
wchar_t wc;
memset (&state, 0, sizeof (mbstate_t));
- if (mbrtowc (&wc, "\250\271", 2, &state) == 2
+ if (mbrtowc (&wc, "\201\060\213\062", 4, &state) == 4
&& towupper (wc) != wc)
{
ASSERT (fnmatch ("\201\060\213\062zg\250\271r", "\201\060\211\060ZG\201\060\211\065R", FNM_CASEFOLD) == 0);