This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug #1962, localedef unable to handle unknown language codes


[Petter Reinholdtsen]
> It did not complain about unknown language code.  It did complain
> about some include files missing, but ran without errors after I
> fetched these.  I guess the reported bug is fixed.

Actually, I happened to test the only language that _was_ already
defined.  Three of the four requrested langauges where missing in
glibc.  I checked
<URL:http://lcweb.loc.gov/standards/iso639-2/englangn.html>, and
discovered that all of them now have three letter codes.

Here is a patch to fix iso-639.def.  I did not understand the sorting
order of the file, so I inserted the langauges at some semi-alphabetic
point in the file.  When this file is updated, a few of the locales
should be updated to use the new language code.  I'll locate these and
check which of the locale files available from FTP could be included.

Index: iso-639.def
===================================================================
RCS file: /cvs/glibc/libc/locale/iso-639.def,v
retrieving revision 1.10
diff -u -3 -p -u -r1.10 iso-639.def
--- iso-639.def 2 Aug 2002 20:29:12 -0000       1.10
+++ iso-639.def 2 Apr 2003 21:38:52 -0000
@@ -52,6 +52,7 @@ DEFINE_LANGUAGE_CODE ("German", de, deu,
 DEFINE_LANGUAGE_CODE ("Gaelic (Scots)", gd, gla, gla)
 DEFINE_LANGUAGE_CODE ("Irish", ga, gle, gle)
 DEFINE_LANGUAGE_CODE ("Gallegan", gl, glg, glg)
+DEFINE_LANGUAGE_CODE3 ("Geez", gez, gez)
 DEFINE_LANGUAGE_CODE3 ("Ganda", lug, lug)
 DEFINE_LANGUAGE_CODE ("Manx", gv, glv, glv)
 DEFINE_LANGUAGE_CODE ("Greek, Modern ()", el, gre, ell)
@@ -134,6 +135,7 @@ DEFINE_LANGUAGE_CODE ("Slovenian", sl, s
 DEFINE_LANGUAGE_CODE ("Northern Sami", se, sme, sme)
 DEFINE_LANGUAGE_CODE ("Samoan", sm, smo, smo)
 DEFINE_LANGUAGE_CODE ("Shona", sn, sna, sna)
+DEFINE_LANGUAGE_CODE3 ("Sidamo", sid, sid)
 DEFINE_LANGUAGE_CODE ("Sindhi", sd, snd, snd)
 DEFINE_LANGUAGE_CODE ("Somali", so, som, som)
 DEFINE_LANGUAGE_CODE3 ("Sotho, Northern", nso, nso)
@@ -152,6 +154,7 @@ DEFINE_LANGUAGE_CODE ("Tajik", tg, tgk,
 DEFINE_LANGUAGE_CODE ("Tagalog", tl, tgl, tgl)
 DEFINE_LANGUAGE_CODE ("Thai", th, tha, tha)
 DEFINE_LANGUAGE_CODE ("Tibetan", bo, bod, tib)
+DEFINE_LANGUAGE_CODE3 ("Tigre", tig, tig)
 DEFINE_LANGUAGE_CODE ("Tigrinya", ti, tir, tir)
 DEFINE_LANGUAGE_CODE ("Tonga (Tonga Islands)", to, ton, ton)
 DEFINE_LANGUAGE_CODE ("Tswana", tn, tsn, tsn)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]