* lib/propername-lite.c (USE_MBRTOC32): Remove.
Replace its use with HAVE_UCHAR_H.
+2025-09-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ propername-lite: simplify USE_MBRTOC32 away
+ * lib/propername-lite.c (USE_MBRTOC32): Remove.
+ Replace its use with HAVE_UCHAR_H.
+
2025-09-05 Bruno Haible <bruno@clisp.org>
propername-lite: Fix compilation error on Haiku r1/beta4 (regr. today).
# ifdef __GLIBC__
# undef mbrtoc32
# endif
-# define USE_MBRTOC32
#endif
/* Return the localization of the name spelled NAME_ASCII in ASCII,
if (translation != name_ascii)
return translation;
-#ifdef USE_MBRTOC32
+#if HAVE_UCHAR_H
/* If DF BF decodes to 07FF, assume it is UTF-8. */
- static char const utf07FF[2] = { 0xDF, 0xBF };
+ static char const utf07FF[] = { 0xDF, 0xBF };
char32_t w;
mbstate_t mbstate = {0,};
if (mbrtoc32 (&w, utf07FF, 2, &mbstate) == 2 && w == 0x07FF)