This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] localedef: allow %l/%n in postal_fmt [BZ #16983]
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Cc: myllynen at redhat dot com
- Date: Fri, 15 Apr 2016 14:53:00 -0400
- Subject: [PATCH] localedef: allow %l/%n in postal_fmt [BZ #16983]
- Authentication-results: sourceware.org; auth=none
ISO 14652/30112 includes %l & %n now, so permit them in our files.
---
locale/programs/ld-address.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/locale/programs/ld-address.c b/locale/programs/ld-address.c
index f133319..bfbdd62 100644
--- a/locale/programs/ld-address.c
+++ b/locale/programs/ld-address.c
@@ -150,8 +150,8 @@ No definition for %s category found"), "LC_ADDRESS"));
}
else
{
- /* We must check whether the format string contains only the
- allowed escape sequences. */
+ /* We must check whether the format string contains only the allowed
+ escape sequences. Last checked against ISO 30112 WD10 [2014]. */
const char *cp = address->postal_fmt;
if (*cp == '\0')
@@ -165,7 +165,7 @@ No definition for %s category found"), "LC_ADDRESS"));
if (*++cp == 'R')
/* Romanize-flag. */
++cp;
- if (strchr ("afdbshNtreCzTSc%", *cp) == NULL)
+ if (strchr ("nafdbshNtreClzTSc%", *cp) == NULL)
{
WITH_CUR_LOCALE (error (0, 0, _("\
%s: invalid escape `%%%c' sequence in field `%s'"),
--
2.7.4