#include <assert.h>
#include <errno.h>
#include <time.h>
-#ifdef ENABLE_IRI
-#include <langinfo.h>
-#endif
#include "utils.h"
#include "init.h"
if (url_scheme (*t) == SCHEME_FTP)
opt.follow_ftp = 1;
- status = retrieve_tree (*t);
+ status = retrieve_tree (*t, NULL);
opt.follow_ftp = old_follow_ftp;
}
else
{
struct iri *i = iri_new ();
- set_uri_encoding (i, opt.locale);
+ set_uri_encoding (i, opt.locale, true);
status = retrieve_url (*t, &filename, &redirected_URL, NULL, &dt,
opt.recursive, i);
iri_free (i);