This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix typos in LC_TELEPHONE in i18n locale
- From: keld at keldix dot com
- To: Mike FABIAN <mfabian at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 3 Nov 2015 08:37:20 +0100
- Subject: Re: [PATCH] Fix typos in LC_TELEPHONE in i18n locale
- Authentication-results: sourceware.org; auth=none
- References: <s9d4mh6wner dot fsf at ari dot site> <20151103022423 dot GU5154 at vapier dot lan> <s9dmvuvoe1a dot fsf at ari dot site>
On Tue, Nov 03, 2015 at 02:19:45PM +0900, Mike FABIAN wrote:
> Mike Frysinger <vapier@gentoo.org> wrote:
>
> > On 01 Nov 2015 09:53, Mike FABIAN wrote:
> >> * locales/i18n: fix typos (tel_int_fmt "+%c +a +l" -> "+%c %a %l")
> >
> > this looks correct
> >
> >> % This is the ISO/IEC 14652 "i18n" definition for
> >> % the LC_TELEPHONE category.
> >> %
> >> -tel_int_fmt "<U002B><U0025><U0063><U0020><U002B><U0061><U0020><U002B>/
> >> +tel_int_fmt "<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025>/
> >> <U006C>"
> >
> > when i look up the spec, i find:
> > http://www.open-std.org/jtc1/SC22/WG20/docs/n972-14652ft.pdf
> >
> > % "+%c %a%t%l"
> > tel_int_fmt
> > "<U002B><U0025><U0063><U0020><U0025><U0061><U0025><U0074><U0025><U006C>"
> >
> > any idea why it says to use %t but we use a space instead ?
> > -mike
>
> I have no idea either. The spec you quote says:
>
> %a area code without nationwide prefix (prefix is often <0>).
> %A area code including nationwide prefix (prefix is often <0>).
> %l local number (within area code).
> %e extension (to local number)
> %c country code
> %C alternate carrier service code used for dialling abroad
> %t Insert a <space> if the previous descriptor???s value was not an empty
> string; otherwise ignore.
>
> So the %t would make a difference if %a happens to be empty, it
> would avoid a double space then. I don't know whether it is possible
> for %a to be empty. Sounds weird, are there countries which have
> no area code?
>
> Shall I make a new patch with the %t? The %t cannot hurt.
Yes, there are countries without area codes, such as Denmark and Norway.
Best regards
keld