Hash :
27492342
Author :
Date :
2024-02-15T19:23:25
localename-unsafe: New module. * lib/localename.h (gl_locale_name_unsafe, gl_locale_name_thread_unsafe, gl_locale_name_posix_unsafe): New declarations. * lib/localename-unsafe.c: New file, based on lib/localename.c. (gl_locale_name_thread_unsafe): Renamed from gl_locale_name_thread. (gl_locale_name_posix_unsafe): Renamed from gl_locale_name_posix. (gl_locale_name_unsafe): Renamed from gl_locale_name. (struniq): Define only on platforms that need it. * lib/localename.c: Remove code that was moved to lib/localename-unsafe.c. (gl_locale_name_thread): Just call gl_locale_name_thread_unsafe and struniq. (gl_locale_name_posix): Just call gl_locale_name_posix_unsafe and struniq. * lib/locale.in.h: Test @GNULIB_LOCALENAME_UNSAFE@ instead of @GNULIB_LOCALENAME@. * m4/locale_h.m4 (gl_LOCALE_H_REQUIRE_DEFAULTS): Initialize GNULIB_LOCALENAME_UNSAFE instead of GNULIB_LOCALENAME. * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME_UNSAFE instead of GNULIB_LOCALENAME. * m4/localename.m4 (gl_LOCALENAME_UNSAFE): Renamed from gl_LOCALENAME. * modules/localename-unsafe: New file, based on modules/localename. * modules/localename: Greatly simplify. (Depends-on): Add localename-unsafe.
Description:
Return current locale's name, according to glibc naming conventions.
Files:
lib/localename.h
lib/localename.c
lib/struniq.h
Depends-on:
locale
localename-unsafe
flexmember
lock
stdbool
thread-optim
configure.ac:
Makefile.am:
lib_SOURCES += localename.c
Include:
"localename.h"
Link:
@INTL_MACOSX_LIBS@
$(LIBTHREAD)
License:
LGPLv2+
Maintainer:
all