Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/locale Add missing files from last commit:



details:   https://anonhg.NetBSD.org/src/rev/524ada8ae0c3
branches:  trunk
changeset: 355282:524ada8ae0c3
user:      perseant <perseant%NetBSD.org@localhost>
date:      Sun Jul 23 18:51:21 2017 +0000

description:
Add missing files from last commit:

Move Unicode <-> ku/ten mapping into the individual codec modules.
Mapping is based on existing iconv data for single-byte encodings,
and included for several, but not all, multibyte encodings.

diffstat:

 tests/lib/libc/locale/Makefile     |       3 +-
 tests/lib/libc/locale/ducet_test.h |  198094 ++++++++++++++++++++++++++++++++++
 tests/lib/libc/locale/t_ducet.c    |     153 +
 3 files changed, 198249 insertions(+), 1 deletions(-)

diffs (truncated from 198272 to 300 lines):

diff -r b81ad553dd5c -r 524ada8ae0c3 tests/lib/libc/locale/Makefile
--- a/tests/lib/libc/locale/Makefile    Sun Jul 23 14:37:51 2017 +0000
+++ b/tests/lib/libc/locale/Makefile    Sun Jul 23 18:51:21 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2017/07/14 14:57:43 perseant Exp $
+# $NetBSD: Makefile,v 1.11 2017/07/23 18:51:21 perseant Exp $
 
 .include <bsd.own.mk>
 
@@ -20,6 +20,7 @@
 TESTS_C+=      t_wctype
 TESTS_C+=      t_btowc
 TESTS_C+=      t_wcscoll
+TESTS_C+=      t_ducet
 
 COPTS.t_wctomb.c += -Wno-stack-protector
 COPTS.t_digittoint.c += -Wno-unused-variable
diff -r b81ad553dd5c -r 524ada8ae0c3 tests/lib/libc/locale/ducet_test.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/libc/locale/ducet_test.h        Sun Jul 23 18:51:21 2017 +0000
@@ -0,0 +1,198094 @@
+/* CollationTest_NON_IGNORABLE_SHORT.txt*/
+/* Date: 2017-06-05, 23:16:53 GMT*/
+/* © 2017 Unicode®, Inc.*/
+/* Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.*/
+/* For terms of use, see http://www.unicode.org/terms_of_use.html*/
+/* UCA Version: 10.0.0*/
+/* UCD Version: 10.0.0*/
+/* For a description of the format and usage, see CollationTest.html*/
+/*
+ * Copyright © 1991-2017 Unicode, Inc. All rights reserved.
+ * Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of the Unicode data files and any associated documentation
+ * (the "Data Files") or Unicode software and any associated documentation
+ * (the "Software") to deal in the Data Files or Software
+ * without restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, and/or sell copies of
+ * the Data Files or Software, and to permit persons to whom the Data Files
+ * or Software are furnished to do so, provided that either
+ * (a) this copyright and permission notice appear with all copies
+ * of the Data Files or Software, or
+ * (b) this copyright and permission notice appear in associated
+ * Documentation.
+ * 
+ * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
+ * ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT OF THIRD PARTY RIGHTS.
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
+ * NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
+ * DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THE DATA FILES OR SOFTWARE.
+ * 
+ * Except as contained in this notice, the name of a copyright holder
+ * shall not be used in advertising or otherwise to promote the sale,
+ * use or other dealings in these Data Files or Software without prior
+ * written authorization of the copyright holder.
+ */
+#define MAX_TS_LEN 7
+wchar_t ducet_test_data[][MAX_TS_LEN] = {
+    {0x0338, 0x0334, 0x0},
+    {0x0336, 0x0334, 0x0},
+    {0x0337, 0x0334, 0x0},
+    {0x20D8, 0x0334, 0x0},
+    {0x20D9, 0x0334, 0x0},
+    {0x20DA, 0x0334, 0x0},
+    {0x20E5, 0x0334, 0x0},
+    {0x20EA, 0x0334, 0x0},
+    {0x20EB, 0x0334, 0x0},
+    {0x1BC9E, 0x0334, 0x0},
+    {0x0335, 0x0334, 0x0},
+    {0x0334, 0x0591, 0x0},
+    {0x0591, 0x0334, 0x0},
+    {0x0334, 0x0592, 0x0},
+    {0x0592, 0x0334, 0x0},
+    {0x0334, 0x0593, 0x0},
+    {0x0593, 0x0334, 0x0},
+    {0x0334, 0x0594, 0x0},
+    {0x0594, 0x0334, 0x0},
+    {0x0334, 0x0595, 0x0},
+    {0x0595, 0x0334, 0x0},
+    {0x0334, 0x0596, 0x0},
+    {0x0596, 0x0334, 0x0},
+    {0x0334, 0x0597, 0x0},
+    {0x0597, 0x0334, 0x0},
+    {0x0334, 0x0598, 0x0},
+    {0x0598, 0x0334, 0x0},
+    {0x0334, 0x0599, 0x0},
+    {0x0599, 0x0334, 0x0},
+    {0x0334, 0x059A, 0x0},
+    {0x059A, 0x0334, 0x0},
+    {0x0334, 0x059B, 0x0},
+    {0x059B, 0x0334, 0x0},
+    {0x0334, 0x059C, 0x0},
+    {0x059C, 0x0334, 0x0},
+    {0x0334, 0x059D, 0x0},
+    {0x059D, 0x0334, 0x0},
+    {0x0334, 0x059E, 0x0},
+    {0x059E, 0x0334, 0x0},
+    {0x0334, 0x059F, 0x0},
+    {0x059F, 0x0334, 0x0},
+    {0x0334, 0x05A0, 0x0},
+    {0x05A0, 0x0334, 0x0},
+    {0x0334, 0x05A1, 0x0},
+    {0x05A1, 0x0334, 0x0},
+    {0x0334, 0x05A2, 0x0},
+    {0x05A2, 0x0334, 0x0},
+    {0x0334, 0x05A3, 0x0},
+    {0x05A3, 0x0334, 0x0},
+    {0x0334, 0x05A4, 0x0},
+    {0x05A4, 0x0334, 0x0},
+    {0x0334, 0x05A5, 0x0},
+    {0x05A5, 0x0334, 0x0},
+    {0x0334, 0x05A6, 0x0},
+    {0x05A6, 0x0334, 0x0},
+    {0x0334, 0x05A7, 0x0},
+    {0x05A7, 0x0334, 0x0},
+    {0x0334, 0x05A8, 0x0},
+    {0x05A8, 0x0334, 0x0},
+    {0x0334, 0x05A9, 0x0},
+    {0x05A9, 0x0334, 0x0},
+    {0x0334, 0x05AA, 0x0},
+    {0x05AA, 0x0334, 0x0},
+    {0x0334, 0x05AB, 0x0},
+    {0x05AB, 0x0334, 0x0},
+    {0x0334, 0x05AC, 0x0},
+    {0x05AC, 0x0334, 0x0},
+    {0x0334, 0x05AD, 0x0},
+    {0x05AD, 0x0334, 0x0},
+    {0x0334, 0x05AE, 0x0},
+    {0x05AE, 0x0334, 0x0},
+    {0x0334, 0x05AF, 0x0},
+    {0x05AF, 0x0334, 0x0},
+    {0x0334, 0x05BD, 0x0},
+    {0x05BD, 0x0334, 0x0},
+    {0x0334, 0x05C4, 0x0},
+    {0x05C4, 0x0334, 0x0},
+    {0x0334, 0x05C5, 0x0},
+    {0x05C5, 0x0334, 0x0},
+    {0x0334, 0x0610, 0x0},
+    {0x0610, 0x0334, 0x0},
+    {0x0334, 0x0611, 0x0},
+    {0x0611, 0x0334, 0x0},
+    {0x0334, 0x0612, 0x0},
+    {0x0612, 0x0334, 0x0},
+    {0x0334, 0x0613, 0x0},
+    {0x0613, 0x0334, 0x0},
+    {0x0334, 0x0614, 0x0},
+    {0x0614, 0x0334, 0x0},
+    {0x0334, 0x0615, 0x0},
+    {0x0615, 0x0334, 0x0},
+    {0x0334, 0x0616, 0x0},
+    {0x0616, 0x0334, 0x0},
+    {0x0334, 0x0617, 0x0},
+    {0x0617, 0x0334, 0x0},
+    {0x0334, 0x0618, 0x0},
+    {0x0618, 0x0334, 0x0},
+    {0x0334, 0x0619, 0x0},
+    {0x0619, 0x0334, 0x0},
+    {0x0334, 0x061A, 0x0},
+    {0x061A, 0x0334, 0x0},
+    {0x0334, 0x06D6, 0x0},
+    {0x06D6, 0x0334, 0x0},
+    {0x0334, 0x06D7, 0x0},
+    {0x06D7, 0x0334, 0x0},
+    {0x0334, 0x06D8, 0x0},
+    {0x06D8, 0x0334, 0x0},
+    {0x0334, 0x06D9, 0x0},
+    {0x06D9, 0x0334, 0x0},
+    {0x0334, 0x06DA, 0x0},
+    {0x06DA, 0x0334, 0x0},
+    {0x0334, 0x06DB, 0x0},
+    {0x06DB, 0x0334, 0x0},
+    {0x0334, 0x06DC, 0x0},
+    {0x06DC, 0x0334, 0x0},
+    {0x0334, 0x06DF, 0x0},
+    {0x06DF, 0x0334, 0x0},
+    {0x0334, 0x06E0, 0x0},
+    {0x06E0, 0x0334, 0x0},
+    {0x0334, 0x06E1, 0x0},
+    {0x06E1, 0x0334, 0x0},
+    {0x0334, 0x06E2, 0x0},
+    {0x06E2, 0x0334, 0x0},
+    {0x0334, 0x06E3, 0x0},
+    {0x06E3, 0x0334, 0x0},
+    {0x0334, 0x06E4, 0x0},
+    {0x06E4, 0x0334, 0x0},
+    {0x0334, 0x06E7, 0x0},
+    {0x06E7, 0x0334, 0x0},
+    {0x0334, 0x06E8, 0x0},
+    {0x06E8, 0x0334, 0x0},
+    {0x0334, 0x06EA, 0x0},
+    {0x06EA, 0x0334, 0x0},
+    {0x0334, 0x06EB, 0x0},
+    {0x06EB, 0x0334, 0x0},
+    {0x0334, 0x06EC, 0x0},
+    {0x06EC, 0x0334, 0x0},
+    {0x0334, 0x06ED, 0x0},
+    {0x06ED, 0x0334, 0x0},
+    {0x0334, 0x0740, 0x0},
+    {0x0740, 0x0334, 0x0},
+    {0x0334, 0x0743, 0x0},
+    {0x0743, 0x0334, 0x0},
+    {0x0334, 0x0744, 0x0},
+    {0x0744, 0x0334, 0x0},
+    {0x0334, 0x0747, 0x0},
+    {0x0747, 0x0334, 0x0},
+    {0x0334, 0x0748, 0x0},
+    {0x0748, 0x0334, 0x0},
+    {0x0334, 0x0749, 0x0},
+    {0x0749, 0x0334, 0x0},
+    {0x0334, 0x074A, 0x0},
+    {0x074A, 0x0334, 0x0},
+    {0x0334, 0x08D4, 0x0},
+    {0x08D4, 0x0334, 0x0},
+    {0x0334, 0x08D5, 0x0},
+    {0x08D5, 0x0334, 0x0},
+    {0x0334, 0x08D6, 0x0},
+    {0x08D6, 0x0334, 0x0},
+    {0x0334, 0x08D7, 0x0},
+    {0x08D7, 0x0334, 0x0},
+    {0x0334, 0x08D8, 0x0},
+    {0x08D8, 0x0334, 0x0},
+    {0x0334, 0x08D9, 0x0},
+    {0x08D9, 0x0334, 0x0},
+    {0x0334, 0x08DA, 0x0},
+    {0x08DA, 0x0334, 0x0},
+    {0x0334, 0x08DB, 0x0},
+    {0x08DB, 0x0334, 0x0},
+    {0x0334, 0x08DC, 0x0},
+    {0x08DC, 0x0334, 0x0},
+    {0x0334, 0x08DD, 0x0},
+    {0x08DD, 0x0334, 0x0},
+    {0x0334, 0x08DE, 0x0},
+    {0x08DE, 0x0334, 0x0},
+    {0x0334, 0x08DF, 0x0},
+    {0x08DF, 0x0334, 0x0},
+    {0x0334, 0x08E0, 0x0},
+    {0x08E0, 0x0334, 0x0},
+    {0x0334, 0x08E1, 0x0},
+    {0x08E1, 0x0334, 0x0},
+    {0x0334, 0x08EA, 0x0},
+    {0x08EA, 0x0334, 0x0},
+    {0x0334, 0x08EB, 0x0},
+    {0x08EB, 0x0334, 0x0},
+    {0x0334, 0x08EC, 0x0},
+    {0x08EC, 0x0334, 0x0},
+    {0x0334, 0x08ED, 0x0},
+    {0x08ED, 0x0334, 0x0},
+    {0x0334, 0x08EE, 0x0},
+    {0x08EE, 0x0334, 0x0},
+    {0x0334, 0x08EF, 0x0},
+    {0x08EF, 0x0334, 0x0},
+    {0x0334, 0x08F3, 0x0},
+    {0x08F3, 0x0334, 0x0},
+    {0x0334, 0x0951, 0x0},
+    {0x0951, 0x0334, 0x0},
+    {0x0334, 0x0952, 0x0},
+    {0x0952, 0x0334, 0x0},
+    {0x0334, 0x0F18, 0x0},
+    {0x0F18, 0x0334, 0x0},
+    {0x0334, 0x0F19, 0x0},
+    {0x0F19, 0x0334, 0x0},
+    {0x0334, 0x0F35, 0x0},
+    {0x0F35, 0x0334, 0x0},
+    {0x0334, 0x0F37, 0x0},
+    {0x0F37, 0x0334, 0x0},
+    {0x0334, 0x0F82, 0x0},
+    {0x0F82, 0x0334, 0x0},
+    {0x0334, 0x0F83, 0x0},
+    {0x0F83, 0x0334, 0x0},
+    {0x0334, 0x0F86, 0x0},
+    {0x0F86, 0x0334, 0x0},
+    {0x0334, 0x0F87, 0x0},
+    {0x0F87, 0x0334, 0x0},
+    {0x0334, 0x0FC6, 0x0},
+    {0x0FC6, 0x0334, 0x0},
+    {0x0334, 0x1A7F, 0x0},
+    {0x1A7F, 0x0334, 0x0},
+    {0x0334, 0x1B6B, 0x0},
+    {0x1B6B, 0x0334, 0x0},
+    {0x0334, 0x1B6C, 0x0},
+    {0x1B6C, 0x0334, 0x0},
+    {0x0334, 0x1B6D, 0x0},
+    {0x1B6D, 0x0334, 0x0},
+    {0x0334, 0x1B6E, 0x0},
+    {0x1B6E, 0x0334, 0x0},
+    {0x0334, 0x1B6F, 0x0},
+    {0x1B6F, 0x0334, 0x0},
+    {0x0334, 0x1B70, 0x0},
+    {0x1B70, 0x0334, 0x0},
+    {0x0334, 0x1B71, 0x0},
+    {0x1B71, 0x0334, 0x0},
+    {0x0334, 0x1B72, 0x0},
+    {0x1B72, 0x0334, 0x0},
+    {0x0334, 0x1B73, 0x0},



Home | Main Index | Thread Index | Old Index