> Thanks, this change looks fine to me. Thanks. But before I do the rewrite, let me add a unit test first. It's a bit tricky only on musl libc, NetBSD, and OpenBSD. Other than that, there's a test failure on Android 4.3, where - setlocale (category, NULL) always returns NULL. - hard_locale of the initial locale returns true, but should be false. 2019-12-18 Bruno Haible hard-locale: Add test. * tests/test-hard-locale.c: New file. * tests/locale.c: New file. * modules/hard-locale-tests: New file.