From 690df9e701eb885480e5ff902bd3a088c6bd92d6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 30 Jun 2002 21:45:51 +0000 Subject: Update. * locale/iso-639.def: Add entry for Ganda. * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New definition. (address_finish): Handle entries with two letter ISO 639 code. * iconvdata/Makefile: Recreate gconv-modules.cache file in target expected result. Reported by Stephen L Moshier . --- locale/programs/ld-address.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'locale/programs/ld-address.c') diff --git a/locale/programs/ld-address.c b/locale/programs/ld-address.c index 5c8efaa..079aa00 100644 --- a/locale/programs/ld-address.c +++ b/locale/programs/ld-address.c @@ -56,6 +56,8 @@ static struct { #define DEFINE_LANGUAGE_CODE(Name, Ab, Term, Lib) \ { #Ab, #Term, #Lib }, +#define DEFINE_LANGUAGE_CODE3(Name, Term, Lib) \ + { "", #Term, #Lib }, #include "iso-639.def" }; @@ -247,7 +249,8 @@ No definition for %s category found"), "LC_ADDRESS")); "LC_ADDRESS", address->lang_ab)); } else - if (strcmp (iso639[cnt].ab, address->lang_ab) != 0) + if (strcmp (iso639[cnt].ab, address->lang_ab) != 0 + && iso639[cnt].ab[0] != '\0') WITH_CUR_LOCALE (error (0, 0, _("\ %s: `%s' value does not match `%s' value"), "LC_ADDRESS", "lang_ab", "lang_term")); -- cgit v1.1