]> sjero.net Git - wget/blobdiff - tests/Test-ftp-iri-recursive.px
Fix build when libpsl is not available
[wget] / tests / Test-ftp-iri-recursive.px
index 95e9f31228f628a652722e125091f0830ea9558b..46b6fd019d36589d1836f0d257a28c58863cb124 100755 (executable)
@@ -1,8 +1,9 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
 
+use WgetFeature qw(iri);
 use FTPTest;
 
 
@@ -24,7 +25,7 @@ my %urls = (
     },
 );
 
-my $cmdline = $WgetTest::WGETPATH . " --locale=iso-8859-1 -r -nH -S ftp://localhost:{{port}}/";
+my $cmdline = $WgetTest::WGETPATH . " --local-encoding=iso-8859-1 -r -nH -S ftp://localhost:{{port}}/";
 
 my $expected_error_code = 0;
 
@@ -37,9 +38,9 @@ my %expected_downloaded_files = (
 ###############################################################################
 
 my $the_test = FTPTest->new (name => "Test-ftp-iri-recursive",
-                             input => \%urls, 
-                             cmdline => $cmdline, 
-                             errcode => $expected_error_code, 
+                             input => \%urls,
+                             cmdline => $cmdline,
+                             errcode => $expected_error_code,
                              output => \%expected_downloaded_files);
 exit $the_test->run();