Hash :
bb5cc1c5
Author :
Date :
2018-05-19T17:17:32
localcharset: Move mapping tables into the code. * lib/localcharset.h: Document the GNU canonical names for character encodings here. * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>, relocatable.h, configmake.h. (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove macros. (charset_aliases): Remove variable. (get_charset_aliases): Remove function. (struct table_entry): New type. (alias_table, locale_table): New constants. (locale_charset): Use the alias_table or locale_table to get the canonicalized encoding name. * lib/config.charset: Remove file. * lib/ref-add.sin: Remove file. * lib/ref-del.sin: Remove file. * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS, AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked. * modules/localcharset (Notice): Remove. (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4, glibc21.m4. (Depends-on): Remove configmake. (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty. (Makefile.am): Simplify. * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
Description:
Return current locale's character encoding.
Files:
lib/localcharset.h
lib/localcharset.c
m4/codeset.m4
m4/localcharset.m4
Depends-on:
extensions
configure.ac:
gl_LOCALCHARSET
dnl For backward compatibility. Some packages still use this.
LOCALCHARSET_TESTS_ENVIRONMENT=
AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
Makefile.am:
lib_SOURCES += localcharset.c
Include:
"localcharset.h"
License:
LGPLv2+
Maintainer:
all