public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [Patch v2 10/14] [BZ #14095] update collation data from Unicode / ISO 14651
@ 2018-02-05 16:12 Mike FABIAN
  0 siblings, 0 replies; only message in thread
From: Mike FABIAN @ 2018-02-05 16:12 UTC (permalink / raw)
  To: libc-alpha; +Cc: Dmitry V. Levin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0010-Fix-posix-bug-regex5.c-test-case-adapt-to-iso14651_t.patch --]
[-- Type: text/x-patch, Size: 1697 bytes --]

From f3b5e297b423994c5e9df1ff082f7505693a74e8 Mon Sep 17 00:00:00 2001
From: Mike FABIAN <mfabian@redhat.com>
Date: Fri, 15 Dec 2017 07:19:45 +0100
Subject: [PATCH 10/14] Fix posix/bug-regex5.c test case, adapt to
 iso14651_t1_common upate

This test case tests how many collating elements are defined in
da_DK.ISO-8859-1 locale. The da_DK locale source defines 4:

collating-element <A-A> from "<U0041><U0041>"
collating-element <A-a> from "<U0041><U0061>"
collating-element <a-A> from "<U0061><U0041>"
collating-element <a-a> from "<U0061><U0061>"

The new iso14651_t1_common file defines more collating elements, two
of them are in the ISO-8859-1 range:

collating-element <U004C_00B7> from "<U004C><U00B7>" % decomposition of LATIN CAPITAL LETTER L WITH MIDDLE DOT
collating-element <U006C_00B7> from "<U006C><U00B7>" % decomposition of LATIN SMALL LETTER L WITH MIDDLE DOT

So the total count is now 6 instead of 4.

	* posix/bug-regex5.c: Fix test case because with the new
        iso14651_t1_common file, the da_DK locale now has 6 collating elements
        in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
        file.
---
 posix/bug-regex5.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c
index fd18b19df4..573da231e3 100644
--- a/posix/bug-regex5.c
+++ b/posix/bug-regex5.c
@@ -53,9 +53,9 @@ main (void)
       printf ("No collating element!\n");
       return 1;
     }
-  else if (found != 4)
+  else if (found != 6)
     {
-      printf ("expected 4 collating elements, found %d\n", found);
+      printf ("expected 6 collating elements, found %d\n", found);
       return 1;
     }
 
-- 
2.14.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-05 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 16:12 [Patch v2 10/14] [BZ #14095] update collation data from Unicode / ISO 14651 Mike FABIAN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).