Skip to content
  • Bruno Haible's avatar
    hard-locale: Make multithread-safe. · 25d476a2
    Bruno Haible authored
    * lib/hard-locale.h (hard_locale): Move documentation to here.
    * lib/hard-locale.c: Don't include <stdlib.h>.
    (GLIBC_VERSION): Remove macro.
    (hard_locale): Assume that all systems name the "C" and "POSIX" locales
    "C" or "POSIX". Invoke setlocale_null instead of setlocale.
    * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
    (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
    (Link): New section.
    * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
    $(LIB_HARD_LOCALE).
    25d476a2