mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Set an initial value for IRIs options and some minor additions in iri.c
This commit is contained in:
parent
2baf323933
commit
be546c20cb
@ -1,3 +1,11 @@
|
||||
2008-06-19 Xavier Saint <wget@sxav.eu>
|
||||
|
||||
* iri.c : Include missing stringprep.h file and add a
|
||||
cast.
|
||||
|
||||
* init.c : set a default initial value for opt.enable_iri,
|
||||
opt.locale and opt.encoding_remote.
|
||||
|
||||
2008-06-19 Xavier Saint <wget@sxav.eu>
|
||||
|
||||
* iri.c, iri.h : Add a new function find_locale() to find
|
||||
|
@ -333,6 +333,14 @@ defaults (void)
|
||||
opt.restrict_files_case = restrict_no_case_restriction;
|
||||
|
||||
opt.max_redirect = 20;
|
||||
|
||||
#ifdef ENABLE_IRI
|
||||
opt.enable_iri = true;
|
||||
#else
|
||||
opt.enable_iri = false;
|
||||
#endif
|
||||
opt.locale = NULL;
|
||||
opt.encoding_remote = NULL;
|
||||
}
|
||||
|
||||
/* Return the user's home directory (strdup-ed), or NULL if none is
|
||||
|
@ -35,6 +35,8 @@ as that of the covered work. */
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <stringprep.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "iri.h"
|
||||
|
||||
@ -73,7 +75,7 @@ char *
|
||||
find_locale (void)
|
||||
{
|
||||
/* sXXXav, made our own function or use libidn one ?! */
|
||||
return stringprep_locale_charset ();
|
||||
return (char *) stringprep_locale_charset ();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user