8ce0b90
commit ffa8106c727607fb365f2b93649fe3ea182dffe4
8ce0b90
Author: Mike FABIAN <mfabian@redhat.com>
8ce0b90
Date:   Fri Dec 15 07:19:45 2017 +0100
8ce0b90
8ce0b90
    Fix posix/bug-regex5.c test case, adapt to iso14651_t1_common upate
8ce0b90
    
8ce0b90
    This test case tests how many collating elements are defined in
8ce0b90
    da_DK.ISO-8859-1 locale. The da_DK locale source defines 4:
8ce0b90
    
8ce0b90
    collating-element <A-A> from "<U0041><U0041>"
8ce0b90
    collating-element <A-a> from "<U0041><U0061>"
8ce0b90
    collating-element <a-A> from "<U0061><U0041>"
8ce0b90
    collating-element <a-a> from "<U0061><U0061>"
8ce0b90
    
8ce0b90
    The new iso14651_t1_common file defines more collating elements, two
8ce0b90
    of them are in the ISO-8859-1 range:
8ce0b90
    
8ce0b90
    collating-element <U004C_00B7> from "<U004C><U00B7>" % decomposition of LATIN CAPITAL LETTER L WITH MIDDLE DOT
8ce0b90
    collating-element <U006C_00B7> from "<U006C><U00B7>" % decomposition of LATIN SMALL LETTER L WITH MIDDLE DOT
8ce0b90
    
8ce0b90
    So the total count is now 6 instead of 4.
8ce0b90
    
8ce0b90
            * posix/bug-regex5.c: Fix test case because with the new
8ce0b90
            iso14651_t1_common file, the da_DK locale now has 6 collating elements
8ce0b90
            in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
8ce0b90
            file.
8ce0b90
8ce0b90
diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c
8ce0b90
index fd18b19df4e75ee1..573da231e3a4de36 100644
8ce0b90
--- a/posix/bug-regex5.c
8ce0b90
+++ b/posix/bug-regex5.c
8ce0b90
@@ -53,9 +53,9 @@ main (void)
8ce0b90
       printf ("No collating element!\n");
8ce0b90
       return 1;
8ce0b90
     }
8ce0b90
-  else if (found != 4)
8ce0b90
+  else if (found != 6)
8ce0b90
     {
8ce0b90
-      printf ("expected 4 collating elements, found %d\n", found);
8ce0b90
+      printf ("expected 6 collating elements, found %d\n", found);
8ce0b90
       return 1;
8ce0b90
     }
8ce0b90