This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: LC_ADDRESS and other locale updates [was: sr_ME locale country_isbn and int_prefix fix]
- From: Jakub Bogusz <jakub at bogusz dot priv dot pl>
- To: Chris Leonard <cjlhomeaddress at gmail dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>, libc-locales at sourceware dot org
- Date: Tue, 27 Aug 2013 15:58:44 +0200
- Subject: Re: LC_ADDRESS and other locale updates [was: sr_ME locale country_isbn and int_prefix fix]
- Authentication-results: sourceware.org; auth=none
- References: <20130519152227 dot GA20733 at stranger dot qboosh dot pl> <CAHdAataN0GXw5yXxrAR_J+eVckFiM0TDSmKsiaStq7yJ-mj=-w at mail dot gmail dot com> <519D893F dot 70901 at redhat dot com> <20130606081419 dot GA7652 at mail> <51B09452 dot 8040009 at redhat dot com> <20130826185611 dot GA11561 at stranger dot qboosh dot pl> <CAHdAata7caee2Yj7qEJbExVh1L1nn630Ji6YhUWCxRvjYH9WOQ at mail dot gmail dot com>
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/