81 lines
4.0 KiB
Diff
81 lines
4.0 KiB
Diff
From 11f35bdef6f070412cb2c1c65d9537b82ea38c8a Mon Sep 17 00:00:00 2001
|
||
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
||
Date: Tue, 16 Sep 2025 11:46:03 +0200
|
||
Subject: [PATCH] Fix expectations on idna system test
|
||
|
||
IDNA tests always redirect output into the file. That means its
|
||
behaviour has changed and is now processing IDN input by default and
|
||
just disables IDN output by default.
|
||
|
||
New behaviour when redirected is the same as +idnin +noidnout, but does
|
||
not fail hard on input errors.
|
||
|
||
bind 9.16 version.
|
||
---
|
||
bin/tests/system/idna/tests.sh | 14 +++++++-------
|
||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||
|
||
diff --git a/bin/tests/system/idna/tests.sh b/bin/tests/system/idna/tests.sh
|
||
index a04012a..5541b94 100644
|
||
--- a/bin/tests/system/idna/tests.sh
|
||
+++ b/bin/tests/system/idna/tests.sh
|
||
@@ -185,7 +185,7 @@ idna_enabled_test() {
|
||
# Note that ASCII characters are converted to lower-case.
|
||
|
||
text="Checking valid non-ASCII label"
|
||
- idna_test "$text" "" "München" "M\195\188nchen."
|
||
+ idna_test "$text" "" "München" "xn--mnchen-3ya."
|
||
idna_test "$text" "+noidnin +noidnout" "München" "M\195\188nchen."
|
||
idna_test "$text" "+noidnin +idnout" "München" "M\195\188nchen."
|
||
idna_test "$text" "+idnin +noidnout" "München" "xn--mnchen-3ya."
|
||
@@ -210,7 +210,7 @@ idna_enabled_test() {
|
||
# for the valid U-label.
|
||
|
||
text="Checking that non-transitional IDNA processing is used"
|
||
- idna_test "$text" "" "faß.de" "fa\195\159.de."
|
||
+ idna_test "$text" "" "faß.de" "xn--fa-hia.de."
|
||
idna_test "$text" "+noidnin +noidnout" "faß.de" "fa\195\159.de."
|
||
idna_test "$text" "+noidnin +idnout" "faß.de" "fa\195\159.de."
|
||
idna_test "$text" "+idnin +noidnout" "faß.de" "xn--fa-hia.de."
|
||
@@ -220,7 +220,7 @@ idna_enabled_test() {
|
||
# onto the Greek sigma character ("σ") in IDNA2003.
|
||
|
||
text="Second check that non-transitional IDNA processing is used"
|
||
- idna_test "$text" "" "βόλος.com" "\206\178\207\140\206\187\206\191\207\130.com."
|
||
+ idna_test "$text" "" "βόλος.com" "xn--nxasmm1c.com."
|
||
idna_test "$text" "+noidnin +noidnout" "βόλος.com" "\206\178\207\140\206\187\206\191\207\130.com."
|
||
idna_test "$text" "+noidnin +idnout" "βόλος.com" "\206\178\207\140\206\187\206\191\207\130.com."
|
||
idna_test "$text" "+idnin +noidnout" "βόλος.com" "xn--nxasmm1c.com."
|
||
@@ -284,7 +284,7 @@ idna_enabled_test() {
|
||
idna_test "$text" "" "xn--xx" "xn--xx."
|
||
idna_test "$text" "+noidnin +noidnout" "xn--xx" "xn--xx."
|
||
idna_fail "$text" "+noidnin +idnout" "xn--xx"
|
||
- idna_fail "$text" "+idnin +noidnout" "xn--xx"
|
||
+ idna_test "$text" "+idnin +noidnout" "xn--xx" "xn--xx."
|
||
idna_fail "$text" "+idnin +idnout" "xn--xx"
|
||
|
||
# Fake A-label - the string does not translate to anything.
|
||
@@ -293,7 +293,7 @@ idna_enabled_test() {
|
||
idna_test "$text" "" "xn--ahahah" "xn--ahahah."
|
||
idna_test "$text" "+noidnin +noidnout" "xn--ahahah" "xn--ahahah."
|
||
idna_fail "$text" "+noidnin +idnout" "xn--ahahah"
|
||
- idna_fail "$text" "+idnin +noidnout" "xn--ahahah"
|
||
+ idna_test "$text" "+idnin +noidnout" "xn--ahahah" "xn--ahahah."
|
||
idna_fail "$text" "+idnin +idnout" "xn--ahahah"
|
||
|
||
# Too long a label. The punycode string is too long (at 64 characters).
|
||
@@ -326,8 +326,8 @@ idna_enabled_test() {
|
||
idna_test "$text" "" "√.com" "\226\136\154.com."
|
||
idna_test "$text" "+noidnin +noidnout" "√.com" "\226\136\154.com."
|
||
idna_test "$text" "+noidnin +idnout" "√.com" "\226\136\154.com."
|
||
- idna_fail "$text" "+idnin +noidnout" "√.com"
|
||
- idna_fail "$text" "+idnin +idnout" "√.com"
|
||
+ idna_test "$text" "+idnin +noidnout" "√.com" "\226\136\154.com."
|
||
+ idna_test "$text" "+idnin +idnout" "√.com" "\226\136\154.com."
|
||
|
||
# Tests of a valid unicode string but an invalid U-label (output)
|
||
#
|
||
--
|
||
2.51.0
|
||
|