]> sjero.net Git - wget/blobdiff - src/main.c
Since wget use libidn function for finding the locale, langinfo.h is useless
[wget] / src / main.c
index 8cee194c8f794135e7bbb73e5e35da2baad1bf44..79c35220e28420188cd43fd00a26014fd5c43acf 100644 (file)
@@ -43,9 +43,6 @@ as that of the covered work.  */
 #include <assert.h>
 #include <errno.h>
 #include <time.h>
-#ifdef ENABLE_IRI
-#include <langinfo.h>
-#endif
 
 #include "utils.h"
 #include "init.h"
@@ -1206,7 +1203,7 @@ WARNING: Can't reopen standard output in binary mode;\n\
       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);