From b8de51f1acfc7fc0c5c04afde81bce83e3087ff5 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Wed, 22 May 2024 21:18:24 -0700 Subject: [PATCH] idnatest Punycode with uppercase ASCII --- unicodetools/data/idna/dev/IdnaTestV2.txt | 9 ++++++++- .../src/main/java/org/unicode/idna/GenerateIdnaTest.java | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/unicodetools/data/idna/dev/IdnaTestV2.txt b/unicodetools/data/idna/dev/IdnaTestV2.txt index fb583ae4d..8747c591b 100644 --- a/unicodetools/data/idna/dev/IdnaTestV2.txt +++ b/unicodetools/data/idna/dev/IdnaTestV2.txt @@ -1,5 +1,5 @@ # IdnaTestV2.txt -# Date: 2024-05-22, 22:45:49 GMT +# Date: 2024-05-23, 04:13:59 GMT # © 2024 Unicode®, Inc. # Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. # For terms of use and license, see https://www.unicode.org/terms_of_use.html @@ -559,6 +559,13 @@ unicode.org; ; ; ; ; ; # unicode.org xn--snl253bgitxhzwu2arn60c; 陋㛼当𤎫竮䗗; ; xn--snl253bgitxhzwu2arn60c; ; ; # 陋㛼当𤎫竮䗗 電𡍪弳䎫窮䵗; ; ; xn--kbo60w31ob3z6t3av9z5b; ; ; # 電𡍪弳䎫窮䵗 xn--kbo60w31ob3z6t3av9z5b; 電𡍪弳䎫窮䵗; ; xn--kbo60w31ob3z6t3av9z5b; ; ; # 電𡍪弳䎫窮䵗 +xn--A-1ga; aö; ; xn--a-1ga; ; ; # aö +aö; ; ; xn--a-1ga; ; ; # aö +ao\u0308; aö; ; xn--a-1ga; ; ; # aö +AO\u0308; aö; ; xn--a-1ga; ; ; # aö +AÖ; aö; ; xn--a-1ga; ; ; # aö +Aö; aö; ; xn--a-1ga; ; ; # aö +Ao\u0308; aö; ; xn--a-1ga; ; ; # aö # RANDOMIZED TESTS diff --git a/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java b/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java index 62d299211..abd2f3e0d 100644 --- a/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java +++ b/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java @@ -968,5 +968,11 @@ public static UnicodeSet getIdna2008Valid() { .appendCodePoint(0x7AEE) .appendCodePoint(0x45D7) .toString(), + // unicodetools issue #747: + // IdnaTestV2.txt should test for valid input with upper case in the ASCII part of Punycode + // Henri Sivonen: + // IdnaTestV2.txt missed a bug in the UTS 46 implementation that I'm writing due to + // not testing an upper-case letter in the ASCII part of Punycode when there are no errors. + "xn--A-1ga", }; }