]> sourceware.org Git - glibc.git/commitdiff
locale: ld-telephone: update to ISO-30112 2014
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 Apr 2016 04:14:30 +0000 (00:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 16 Apr 2016 07:33:30 +0000 (03:33 -0400)
The newer version of the standard adds %C %e %t to tel_int_fmt and
tel_dom_fmt.  Make sure localedef accepts them.

Also change the default tel_int_fmt to include %t per the standard.

ChangeLog
locale/programs/ld-telephone.c

index 92d5557598089c331b7e1ca4d689256ab0fe3f16..a4cffe7d851aa06a4c0a68253082f172c651135c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
+       default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
+       tel_dom_fmt.
+
 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/powerpc64/multiarch/Makefile:
index 6c38449d2c185336ebfd2f7f2ccc92f32e9c6588..e54afc941e25807d23afc0cdf4ac1570221bf0f5 100644 (file)
@@ -105,7 +105,7 @@ No definition for %s category found"), "LC_TELEPHONE"));
        WITH_CUR_LOCALE (error (0, 0, _("%s: field `%s' not defined"),
                                "LC_TELEPHONE", "tel_int_fmt"));
       /* Use as the default value the value of the i18n locale.  */
-      telephone->tel_int_fmt = "+%c %a %l";
+      telephone->tel_int_fmt = "+%c %a%t%l";
     }
   else
     {
@@ -121,7 +121,7 @@ No definition for %s category found"), "LC_TELEPHONE"));
          {
            if (*cp == '%')
              {
-               if (strchr ("aAlc", *++cp) == NULL)
+               if (strchr ("aAcCelt", *++cp) == NULL)
                  {
                    WITH_CUR_LOCALE (error (0, 0, _("\
 %s: invalid escape sequence in field `%s'"), "LC_TELEPHONE", "tel_int_fmt"));
@@ -144,7 +144,7 @@ No definition for %s category found"), "LC_TELEPHONE"));
        {
          if (*cp == '%')
            {
-             if (strchr ("aAlc", *++cp) == NULL)
+             if (strchr ("aAcCelt", *++cp) == NULL)
                {
                  WITH_CUR_LOCALE (error (0, 0, _("\
 %s: invalid escape sequence in field `%s'"), "LC_TELEPHONE", "tel_dom_fmt"));
This page took 0.170262 seconds and 5 git commands to generate.