X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-idn-cmd.px;h=49a251eaeffe0731952f100fd785193fe4535921;hp=a5c156a2b3113fe304ca3131bf10fae82661a559;hb=4a08094db88011153adadbf995103770b20d2a31;hpb=289ff1c86acbd60e09cb15d22df62b8e19942c3e diff --git a/tests/Test-idn-cmd.px b/tests/Test-idn-cmd.px index a5c156a2..49a251ea 100755 --- a/tests/Test-idn-cmd.px +++ b/tests/Test-idn-cmd.px @@ -1,7 +1,9 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; +use WgetFeature qw(iri); use HTTPTest; # " Kon'nichiwa Japan @@ -27,7 +29,7 @@ my %urls = ( ); my $cmdline = $WgetTest::WGETPATH . " --debug --iri -rH" - . " -e http_proxy=localhost:{{port}} --locale=EUC-JP $euc_jp_hostname"; + . " -e http_proxy=localhost:{{port}} --local-encoding=EUC-JP $euc_jp_hostname"; my $expected_error_code = 0; @@ -39,10 +41,10 @@ my %expected_downloaded_files = ( ############################################################################### -my $the_test = HTTPTest->new (name => "Test-iri-cmd", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, +my $the_test = HTTPTest->new (name => "Test-idn-cmd", + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();