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]

Request for inclusion of sr_CS and sr_CS@Latn locales


I've written a longer commentary more than half a year ago, so I
won't go into depth this time.

Current Serbian locales (sr_YU, sr_YU@cyrillic) have several problems:
1. They're using obsolete country code of YU (now CS)
2. They don't reflect the new name of the country (Serbia and
   Montenegro, versus Yugoslavia)
3. They don't reflect the official status of several parameters, such
   as start of work week (on Monday, when week starts itself),
   official script (Cyrillic, and not Latin as used in sr_YU; I hope I
   don't have to bring the Constitution here to show that ;),
   date/time formats, etc.

I solve all of these in the attached files. I'm also including patch
to libc/locale/iso-3166.def which fixes the codes (numeric code
stayed the same for CS as it was for YU) -- sorry for not making a
patch in the proper directory.

There're no practical regressions as compared to sr_YU locales, and
the only missing feature is collation of Serbian Latin in sr_CS@Latn
(ISO 14651 is correct for Serbian Cyrillic).

Choice of "Latn" was already discussed, and there was no clear
consensus (AFAICT) whether it's a good choice. "@latin" is not used
anywhere, so I don't see the merit of choosing that one over the
"@Latn" (and this second one is used for around 200 files in Gnome
CVS, and several other places).

Hope I would be of better luck this time, and can get these updated
and improved locales into GNU libc.

Cheers,
Danilo

Attachment: sr_CS
Description: Serbian Locale definition

Attachment: txt00002.txt
Description: Serbian Latin locale definition

--- iso-3166.def~	Sun Sep 28 13:43:18 2003
+++ iso-3166.def	Sun Sep 28 14:24:34 2003
@@ -193,6 +193,7 @@
 DEFINE_COUNTRY_CODE ("SAO TOME AND PRINCIPE", ST, STP, 678)
 DEFINE_COUNTRY_CODE ("SAUDI ARABIA", SA, SAU, 682)
 DEFINE_COUNTRY_CODE ("SENEGAL", SN, SEN, 686)
+DEFINE_COUNTRY_CODE ("SERBIA AND MONTENEGRO", CS, SCG, 891)
 DEFINE_COUNTRY_CODE ("SEYCHELLES", SC, SYC, 690)
 DEFINE_COUNTRY_CODE ("SIERRA LEONE", SL, SLE, 694)
 DEFINE_COUNTRY_CODE ("SINGAPORE", SG, SGP, 702)
@@ -240,6 +241,5 @@
 DEFINE_COUNTRY_CODE ("WALLIS AND FUTUNA", WF, WLF, 876)
 DEFINE_COUNTRY_CODE ("WESTERN SAHARA", EH, ESH, 732)
 DEFINE_COUNTRY_CODE ("YEMEN", YE, YEM, 887)
-DEFINE_COUNTRY_CODE ("YUGOSLAVIA", YU, YUG, 891)
 DEFINE_COUNTRY_CODE ("ZAMBIA", ZM, ZMB, 894)
 DEFINE_COUNTRY_CODE ("ZIMBABWE", ZW, ZWE, 716)

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