From 4b156cb2fd3c3eafc0a784fde139a666017a4614 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 23 Aug 2000 08:25:46 +0000 Subject: Update. 2000-08-23 Ulrich Drepper * locale/programs/ld-ctype.c (ctype_read): Allow more than one default_missing character being specified, pick the first representable. --- ChangeLog | 6 ++++++ locale/programs/ld-ctype.c | 23 ++++++++++++++++++++--- localedata/ChangeLog | 4 ++++ localedata/locales/i18n | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1715b5d1e8..8739d37da7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-08-23 Ulrich Drepper + + * locale/programs/ld-ctype.c (ctype_read): Allow more than one + default_missing character being specified, pick the first + representable. + 2000-08-23 Andreas Jaeger * include/wchar.h: Add some pure attributes. diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index 8904bcad02..b8a8695229 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -854,7 +854,7 @@ ctype_output (struct localedef_t *locale, struct charmap_t *charmap, ? (ctype->map_collection_nr - 2) : (ctype->nr_charclass + ctype->map_collection_nr))); struct iovec iov[2 + nelems + 2 * ctype->nr_charclass - + ctype->map_collection_nr + 2]; + + ctype->map_collection_nr + 4]; struct locale_file data; uint32_t idx[nelems + 1]; uint32_t default_missing_len; @@ -1112,6 +1112,12 @@ ctype_output (struct localedef_t *locale, struct charmap_t *charmap, break; case _NL_ITEM_INDEX(_NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN): + /* Align entries. */ + iov[2 + elem + offset].iov_base = (void *) nulbytes; + iov[2 + elem + offset].iov_len = (4 - idx[elem] % 4) % 4; + idx[elem] += iov[2 + elem + offset].iov_len; + ++offset; + default_missing_len = (ctype->default_missing ? wcslen ((wchar_t *)ctype->default_missing) : 0); @@ -1129,6 +1135,12 @@ ctype_output (struct localedef_t *locale, struct charmap_t *charmap, break; case _NL_ITEM_INDEX(_NL_CTYPE_TRANSLIT_IGNORE_LEN): + /* Align entries. */ + iov[2 + elem + offset].iov_base = (void *) nulbytes; + iov[2 + elem + offset].iov_len = (4 - idx[elem] % 4) % 4; + idx[elem] += iov[2 + elem + offset].iov_len; + ++offset; + iov[2 + elem + offset].iov_base = &ctype->ntranslit_ignore; iov[2 + elem + offset].iov_len = sizeof (uint32_t); idx[elem + 1] = idx[elem] + iov[2 + elem + offset].iov_len; @@ -1200,7 +1212,7 @@ ctype_output (struct localedef_t *locale, struct charmap_t *charmap, } assert (2 + elem + offset == (nelems + 2 * ctype->nr_charclass - + ctype->map_collection_nr + 2 + 2)); + + ctype->map_collection_nr + 4 + 2)); write_locale_data (output_path, "LC_CTYPE", 2 + elem + offset, iov); } @@ -2620,6 +2632,9 @@ with character code range values one must use the absolute ellipsis `...'")); array. */ cnt = 0; + ldfile->translate_strings = 1; + ldfile->return_widestr = 1; + /* We proceed until we see the `translit_end' token. */ while (now = lr_token (ldfile, charmap, repertoire), now->tok != tok_translit_end && now->tok != tok_eof) @@ -2713,7 +2728,8 @@ previous definition was here")); ctype->default_missing_file = ldfile->fname; ctype->default_missing_lineno = ldfile->lineno; } - lr_ignore_rest (ldfile, 1); + /* We can have more entries, ignore them. */ + lr_ignore_rest (ldfile, 0); break; } else if (wstr == (uint32_t *) -1l) @@ -2744,6 +2760,7 @@ previous definition was here")); read_translit_entry (ldfile, ctype, now, charmap, repertoire); } + ldfile->return_widestr = 0; break; case tok_ident: diff --git a/localedata/ChangeLog b/localedata/ChangeLog index ce13b01ce5..bc9415218c 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,7 @@ +2000-08-23 Ulrich Drepper + + * locales/i18n: Add transliteration information. + 2000-08-22 Ulrich Drepper * locales/ca_ES@euro: Country is Spain. diff --git a/localedata/locales/i18n b/localedata/locales/i18n index 6c2725cd1d..30d2ae4159 100644 --- a/localedata/locales/i18n +++ b/localedata/locales/i18n @@ -762,6 +762,53 @@ class "combining_level3"; / ;;;;..;; % +translit_start + +% COPYRIGHT SIGN. + "" +% LEFT-POINTING DOUBLE ANGLE QUOTATION MARK. + "" +% REGISTERED SIGN. + "" +% RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK. + "" +% VULGAR FRACTION ONE QUARTER. + "" +% VULGAR FRACTION ONE HALF. + "" +% VULGAR FRACTION THREE QUARTERS. + "" +% LATIN CAPITAL LETTER A WITH DIAERESIS. + "";"" +% LATIN CAPITAL LETTER A WITH RING ABOVE. + ;"";"" +% LATIN CAPITAL LETTER AE. + "" +% LATIN CAPITAL LETTER O WITH DIAERESIS. + "" +% LATIN CAPITAL LETTER U WITH DIAERESIS. + "" +% LATIN SMALL LETTER SHARP S. + "" +% LATIN SMALL LETTER A WITH DIAERESIS. + "";"" +% LATIN SMALL LETTER A WITH RING ABOVE. + "";"" +% LATIN SMALL LETTER AE. + "" +% LATIN SMALL LETTER O WITH DIAERESIS. + "" +% LATIN SMALL LETTER U WITH DIAERESIS. + "" +% LEFT DOUBLE QUOTATION MARK. + +% RIGHT DOUBLE QUOTATION MARK. + + +default_missing ; + +translit_end + END LC_CTYPE LC_COLLATE -- cgit v1.2.3