This is the mail archive of the libc-alpha@sourceware.org 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: LC_ADDRESS and other locale updates [was: sr_ME locale country_isbn and int_prefix fix]


On Mon, Aug 26, 2013 at 05:25:31PM -0400, Chris Leonard wrote:
> I looked at your first patch
> 
> Fill in country_{car,isbn} for aa_ET.
> 
> --- libc.orig/localedata/locales/aa_ET 2003-11-04 05:53:19.000000000 +0100
> +++ libc/localedata/locales/aa_ET 2004-11-10 02:36:38.000000000 +0100
> @@ -109,8 +109,8 @@
>  country_ab2   "<U0045><U0054>"
>  country_ab3   "<U0045><U0054><U0048>"
>  country_num   231   % 210 found in at least one ISO 3166 doc
> -% country_car   unknown
> -% country_isbn  unknown, Need ISO 2108
> +country_car   "<U0045><U0054><U0048>"
> +country_isbn  "<U0039><U0039><U0039><U0034><U0034>"
>  lang_name     "<U0051><U0061><U0066><U0061><U0072>"
>  lang_ab       "<U0061><U0061>"
>  lang_term     "<U0061><U0061><U0072>"
> 
> 
> I am not 100% sure, but I was under the impression from looking at
> other locales that country_isbn was a simple numeric value and not
> quoted and converted into Unicode points.
> 
> Am I correct in this?

I can't see any consistency in (upstream) glibc.
Among 45 locales containing country_isbn field:
- 23 have numeric value unquoted
- 11 have numeric value in quotes
- 11 have value coded in Unicode points

Also note that some countries have more than one ISBN prefix (there is
single case in upstream glibc: es_CR locale). Such case (I think) cannot
be represented as unquoted numeric value.


-- 
Jakub Bogusz    http://qboosh.pl/


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