1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Use dt rather than result

This commit is contained in:
Saint Xavier 2008-07-20 18:20:18 +02:00
parent 9a2ea3938d
commit da6b3f4b61
2 changed files with 2 additions and 2 deletions

View File

@ -780,7 +780,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
} }
/* Try to not encode in UTF-8 if fetching failed */ /* Try to not encode in UTF-8 if fetching failed */
if (result != RETROK && utf8_encoded) if (!(*dt & RETROKF) && utf8_encoded)
{ {
utf8_encoded = false; utf8_encoded = false;
/*printf ("[Fallbacking to non-utf8 for `%s'\n", url);*/ /*printf ("[Fallbacking to non-utf8 for `%s'\n", url);*/