From 04fbc779fe06ebb697c7dfe02493ad2fc0f8e1e5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 22 Jul 2000 21:22:08 +0000 Subject: Update. * iconv/gconv_trans.c: Correct a few bugs in the search loop. Remove remainders of hash table. * locale/categories.def: Remove remainders of transliteration hash table. * locale/langinfo.h: Likewise. * locale/programs/ld-ctype.c: Likewise. Fix code to write out transliteration tables. * locale/gen-translit.pl: New file. * locale/C-translit.h.in: New file. * locale/C-ctype.c: Include C-translit.h. Initialize transliteration data pointers with data from this file. * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h, and gen-translit.pl. Add rule to generate C-translit.h. --- locale/C-ctype.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'locale/C-ctype.c') diff --git a/locale/C-ctype.c b/locale/C-ctype.c index e93a585..fe1e8ac 100644 --- a/locale/C-ctype.c +++ b/locale/C-ctype.c @@ -20,6 +20,8 @@ #include "localeinfo.h" #include +#include "C-translit.h" + /* This table's entries are taken from POSIX.2 Table 2-6 ``LC_CTYPE Category Definition in the POSIX Locale''. @@ -420,12 +422,11 @@ const struct locale_data _nl_C_LC_CTYPE = { word: L'7' }, { word: L'8' }, { word: L'9' }, - { word: 0 }, - { word: 0 }, - { string: NULL }, - { string: NULL }, - { string: NULL }, - { string: NULL }, + { word: NTRANSLIT }, + { wstr: translit_from_idx }, + { wstr: (uint32_t *) translit_from_tbl }, + { wstr: translit_to_idx }, + { wstr: (uint32_t *) translit_to_tbl }, { word: 1 }, { wstr: (uint32_t *) L"?" }, { word: 0 }, -- cgit v1.1