]> sjero.net Git - wget/blobdiff - src/res.c
opt.remote_encoding should not override opt.locale, add a force arguments to set_uri_...
[wget] / src / res.c
index 69abd12dd5b60dc8d03193b3ddcd55f1003a7c63..0320d034246cfce5639397522a1a41f9789fdbb8 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -542,7 +542,7 @@ res_retrieve_file (const char *url, char **file, struct iri *iri)
 
   /* Copy server URI encoding for a possible IDNA transformation, no need to
      encode the full URI in UTF-8 because "robots.txt" is plain ASCII */
-  set_uri_encoding (i, iri->uri_encoding);
+  set_uri_encoding (i, iri->uri_encoding, false);
   i->utf8_encode = false;
 
   logputs (LOG_VERBOSE, _("Loading robots.txt; please ignore errors.\n"));