From f8ffc7d0848e45c9c288c19332b99b6291188e66 Mon Sep 17 00:00:00 2001
From: Xavier Saint <wget@sxav.eu>
Date: Sun, 3 Aug 2008 20:38:00 +0200
Subject: [PATCH] Use --restrict-file-names=nocontrol during Test-iri* tests
 avoiding some special escaping

---
 tests/Test-iri-disabled.px      | 1 -
 tests/Test-iri-forced-remote.px | 1 -
 tests/Test-iri.px               | 5 ++---
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/Test-iri-disabled.px b/tests/Test-iri-disabled.px
index 122537ff..17e43361 100755
--- a/tests/Test-iri-disabled.px
+++ b/tests/Test-iri-disabled.px
@@ -24,7 +24,6 @@ my $eacute_l1 = "\xE9";
 my $eacute_u8 = "\xC3\xA9";
 my $eurosign_l15 = "\xA4";
 my $eurosign_u8 = "\xE2\x82\xAC";
-my $eurosign2_u8 = "\xE2%82\xAC";	# version wget use... sXXXav
 
 my $pageindex = <<EOF;
 <html>
diff --git a/tests/Test-iri-forced-remote.px b/tests/Test-iri-forced-remote.px
index 0d116d8f..1acd03a7 100755
--- a/tests/Test-iri-forced-remote.px
+++ b/tests/Test-iri-forced-remote.px
@@ -25,7 +25,6 @@ my $eacute_l1 = "\xE9";
 my $eacute_u8 = "\xC3\xA9";
 my $eurosign_l15 = "\xA4";
 my $eurosign_u8 = "\xE2\x82\xAC";
-my $eurosign2_u8 = "\xE2%82\xAC";	# version wget use... sXXXav
 my $currency_l1 = "\xA4";
 my $currency_u8 = "\xC2\xA4";
 
diff --git a/tests/Test-iri.px b/tests/Test-iri.px
index 3f4cf3fd..d228721c 100755
--- a/tests/Test-iri.px
+++ b/tests/Test-iri.px
@@ -25,7 +25,6 @@ my $eacute_l1 = "\xE9";
 my $eacute_u8 = "\xC3\xA9";
 my $eurosign_l15 = "\xA4";
 my $eurosign_u8 = "\xE2\x82\xAC";
-my $eurosign2_u8 = "\xE2%82\xAC";	# version wget use... sXXXav
 
 my $pageindex = <<EOF;
 <html>
@@ -187,7 +186,7 @@ my %urls = (
     },
 );
 
-my $cmdline = $WgetTest::WGETPATH . " --iri -nH -r http://localhost:{{port}}/";
+my $cmdline = $WgetTest::WGETPATH . " --iri --restrict-file-names=nocontrol -nH -r http://localhost:{{port}}/";
 
 my $expected_error_code = 0;
 
@@ -204,7 +203,7 @@ my %expected_downloaded_files = (
     "p2_${eacute_u8}${eacute_u8}n.html" => {
         content => $pageeen,
     },
-    "p3_${eurosign2_u8}${eurosign2_u8}${eurosign2_u8}.html" => {
+    "p3_${eurosign_u8}${eurosign_u8}${eurosign_u8}.html" => {
         content => $pageeuro,
     },
     "p4_m${eacute_u8}${eacute_u8}r.html" => {