]> sjero.net Git - wget/blobdiff - src/retr.c
Use dt rather than result
[wget] / src / retr.c
index 05ffe1d03b460c4cc761177d2f56b801ea7e0277..021060819d3aa8e36b44c539d0aee46908a1ad3a 100644 (file)
@@ -780,7 +780,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
     }
 
   /* Try to not encode in UTF-8 if fetching failed */
-  if (result != RETROK && utf8_encoded)
+  if (!(*dt & RETROKF) && utf8_encoded)
     {
       utf8_encoded = false;
       /*printf ("[Fallbacking to non-utf8 for `%s'\n", url);*/