]> sjero.net Git - wget/blobdiff - tests/Test-ftp-iri-fallback.px
Fix build when libpsl is not available
[wget] / tests / Test-ftp-iri-fallback.px
index 8902e0f9a1392ca527d3b601f72cdd49066c4082..c78518f020be9dd9c99105ccef2e11f5992f4808 100755 (executable)
@@ -1,7 +1,9 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
+use warnings;
 
+use WgetFeature qw(iri);
 use FTPTest;
 
 
@@ -23,7 +25,7 @@ my %urls = (
     },
 );
 
-my $cmdline = $WgetTest::WGETPATH . " --locale=iso-8859-1 -S ftp://localhost:{{port}}/fran${ccedilla_l1}ais.txt";
+my $cmdline = $WgetTest::WGETPATH . " --local-encoding=iso-8859-1 -S ftp://localhost:{{port}}/fran${ccedilla_l1}ais.txt";
 
 my $expected_error_code = 0;
 
@@ -35,10 +37,10 @@ my %expected_downloaded_files = (
 
 ###############################################################################
 
-my $the_test = FTPTest->new (name => "Test-ftp-iri",
-                             input => \%urls, 
-                             cmdline => $cmdline, 
-                             errcode => $expected_error_code, 
+my $the_test = FTPTest->new (name => "Test-ftp-iri-fallback",
+                             input => \%urls,
+                             cmdline => $cmdline,
+                             errcode => $expected_error_code,
                              output => \%expected_downloaded_files);
 exit $the_test->run();