]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix posix/bug-regex5.c test case, adapt to iso14651_t1_common upate
authorMike FABIAN <mfabian@redhat.com>
Fri, 15 Dec 2017 06:19:45 +0000 (07:19 +0100)
committerMike FABIAN <mfabian@redhat.com>
Tue, 27 Feb 2018 15:58:44 +0000 (16:58 +0100)
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.

ChangeLog
posix/bug-regex5.c

index 954763fac76c3cc708f2166c19577bf0526a19da..4091d0717bf5819e400c0eeddf2c6c03bc97b11a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-02-27  Mike FABIAN  <mfabian@redhat.com>
+
+       * 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.
+
 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
 
        * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
index fd18b19df4e75ee13bb67c64b52497c9bb9f7f9c..573da231e3a4de367ef4826464411c712d8c68f4 100644 (file)
@@ -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;
     }