]> sjero.net Git - wget/blobdiff - src/res.c
Fix problem with IDN and UTF-8 encoding.
[wget] / src / res.c
index edb12bd6d2b13824ff37031e8effb0ce11974170..50dcb56d0729f188ef4f7fd0ad450a2de7098185 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -552,7 +552,7 @@ res_retrieve_file (const char *url, char **file, struct iri *iri)
   opt.timestamping = false;
   opt.spider       = false;
 
-  url_parsed = url_parse (robots_url, &url_err, iri, true);
+  url_parsed = url_parse (robots_url, &url_err, i, true);
   if (!url_parsed)
     {
       char *error = url_error (robots_url, url_err);