Re: more workarounds against glibc C locale bug

2023-03-30 Thread Bruno Haible
Some of the new tests fail on Android: FAIL: test-btowc3.sh ../../gltests/test-btowc.c:76: assertion 'wc == c || wc == 0xDF00 + c' failed Aborted FAIL test-btowc3.sh (exit status: 1) FAIL: test-mbsnrtowcs5.sh = ../../gltests/test-mbsnrtowcs.c:327: as

more workarounds against glibc C locale bug

2023-03-30 Thread Bruno Haible
In 2004, Paul opened this glibc bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19932 Meanwhile, POSIX:2018 has clarified that conversion from a single 'char' to a wchar_t in the "C" locale always succeeds. In Gnulib, a workaround for this issue was added to the 'mbrtowc' module in 2016. But

Re: new modules string-desc, xstring-desc, string-desc-quotearg

2023-03-30 Thread Bruno Haible
> string-desc: Add tests. > * tests/test-string-desc.sh: New file. > * tests/test-string-desc.c: New file. > * modules/string-desc-tests: New file. Oops, these tests cause a "make distcheck" failure: ERROR: files left in build directory after distclean: ./gettext-tools

snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS

2023-03-30 Thread Bruno Haible
In GNU gettext, autoconf produces this warning: configure.ac:71: warning: AC_REQUIRE: `gl_PRINTF_POSITIONS' was expanded before it was required configure.ac:71: https://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required gnulib-m4/snprintf-posix.m4:19: gl_FUNC_SNPRINTF_IS