1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-11 11:50:52 +03:00
Files
gnulib/modules/getlocalename_l-unsafe
Bruno Haible 40b7c218d7 setlocale-messages: Rename to setlocale-fixes and add Android support.
* lib/setlocale-fixes.h: Renamed from lib/setlocale-messages.h.
(setlocale_fixed, setlocale_fixed_null): New declarations.
* lib/setlocale-fixes.c: Renamed from lib/setlocale-messages.h.
(lc_cat_name): New variable.
(cat_to_index, index_to_cat): New macro.
(lc_all_name): New variable.
(cat_names): New constant.
(fill_lc_all_name, extract_single_name, setlocale_fixed,
setlocale_fixed_null): New functions.
* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set NEED_SETLOCALE_IMPROVED to 1
on Android.
* lib/setlocale.c: Include setlocale-fixes.h instead of
setlocale-messages.h.
(setlocale_unixlike) [__ANDROID__]: Use setlocale_fixed instead of
setlocale_mtsafe.
(setlocale_improved): On Android, use setlocale_fixed_null instead of
setlocale.
* lib/getlocalename_l-unsafe.c: Include setlocale-fixes.h instead of
setlocale-messages.h.
(getlocalename_l_unsafe): On Android, use setlocale_fixed_null instead
of setlocale_null.
* modules/setlocale-fixes: Renamed from modules/setlocale-messages.
(Files): Update.
(configure.ac): Compile the .c file also on Android.
(Include): Include setlocale-fixes.h instead of setlocale-messages.h.
* modules/setlocale (Depends-on): Add setlocale-fixes. Remove
setlocale-messages.
* modules/getlocalename_l-unsafe (Depends-on): Likewise.
* doc/posix-functions/setlocale.texi: Mention the Android problem.
2025-03-22 13:04:26 +01:00

46 lines
766 B
Plaintext

Description:
getlocalename_l_unsafe() function: return name of a single locale category.
Files:
lib/getlocalename_l-unsafe.h
lib/getlocalename_l-unsafe.c
lib/localename-table.h
lib/localename-table.c
lib/struniq.h
m4/getlocalename_l.m4
m4/intl-thread-locale.m4
Depends-on:
locale-h
getlocalename_l-unsafe-limited
flexmember
lock
bool
thread-optim
setlocale-fixes
setlocale-null
free-posix
configure.ac:
gl_FUNC_GETLOCALENAME_L_UNSAFE
gl_PREREQ_GETLOCALENAME_L_UNSAFE
gl_LOCALE_MODULE_INDICATOR([getlocalename_l-unsafe])
Makefile.am:
if !GL_COND_OBJ_GETLOCALENAME_L_UNSAFE_LIMITED
lib_SOURCES += getlocalename_l-unsafe.c
endif
lib_SOURCES += localename-table.c
Include:
"getlocalename_l-unsafe.h"
Link:
$(GETLOCALENAME_L_LIB)
License:
LGPLv2+
Maintainer:
all