]> sjero.net Git - wget/commitdiff
Fix Test-ftp-iri.
authorMicah Cowan <micah@cowan.name>
Mon, 29 Jun 2009 04:15:22 +0000 (21:15 -0700)
committerMicah Cowan <micah@cowan.name>
Mon, 29 Jun 2009 04:15:22 +0000 (21:15 -0700)
src/main.c
tests/Test-ftp-iri.px

index 8b9c11057b01091755732d381f351303b24126d1..d7e2fbb97b4aae1065f1d09720c7ff4bff345a25 100644 (file)
@@ -1207,9 +1207,10 @@ WARNING: Can't reopen standard output in binary mode;\n\
        * retrieve_url may modify it in some circumstances,
        * currently. */
       struct iri *iri = iri_new ();
        * retrieve_url may modify it in some circumstances,
        * currently. */
       struct iri *iri = iri_new ();
-      struct url *url_parsed = url_parse (*t, &url_err, iri, true);
+      struct url *url_parsed;
 
       set_uri_encoding (iri, opt.locale, true);
 
       set_uri_encoding (iri, opt.locale, true);
+      url_parsed = url_parse (*t, &url_err, iri, true);
 
       if (!url_parsed)
         {
 
       if (!url_parsed)
         {
index 78e2622c51ccbb5d613b8bd0eb4305a8f7a31314..c7119482038889c26c8d1771e79956aecb0e963e 100755 (executable)
@@ -25,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 . " --debug --locale=iso-8859-1 -S ftp://localhost:{{port}}/fran${ccedilla_l1}ais.txt";
 
 my $expected_error_code = 0;
 
 
 my $expected_error_code = 0;