]> sjero.net Git - wget/blobdiff - src/iri.c
opt.remote_encoding should not override opt.locale, add a force arguments to set_uri_...
[wget] / src / iri.c
index 44a262b8e25ba872153cc3724cb4aa34aa610940..3ee99871273ad76c4d115c015bcb751653e93ec3 100644 (file)
--- a/src/iri.c
+++ b/src/iri.c
@@ -329,10 +329,10 @@ iri_free (struct iri *i)
 }
 
 void
-set_uri_encoding (struct iri *i, char *charset)
+set_uri_encoding (struct iri *i, char *charset, bool force)
 {
   DEBUGP (("[IRI uri = `%s'\n", quote (charset)));
-  if (opt.encoding_remote)
+  if (!force && opt.encoding_remote)
     return;
   if (i->uri_encoding)
     {