+2008-07-17 Steven Schubiger <stsc@members.fsf.org>
+
+ * retr.c (retrieve_from_file): When given an URL as input file,
+ use it as baseref if none was specified and treat the input file
+ as HTML if its content type is text/html.
+
+ * init.c (cleanup): Free the memory associated with the base
+ option (when DEBUG_MALLOC is defined).
+
+ 2008-07-02 Xavier Saint <wget@sxav.eu>
+
+ * iri.c, iri.h : New function idn_decode() to decode ASCII
+ encoded hostname to the locale.
+
+ * host.c : Show hostname to be resolved both in locale and
+ ASCII encoded.
+
2008-06-28 Steven Schubiger <stsc@members.fsf.org>
* retr.c (retrieve_from_file): Allow for reading the links from
status = RETROK; /* Suppose everything is OK. */
*count = 0; /* Reset the URL count. */
-
+
+ /* sXXXav : Assume filename and links in the file are in the locale */
+ set_content_encoding (iri, opt.locale);
+
if (url_has_scheme (url))
{
+ int dt;
uerr_t status;
- status = retrieve_url (url, &input_file, NULL, NULL, NULL, false, iri);
+
+ if (!opt.base_href)
+ opt.base_href = xstrdup (url);
+
- status = retrieve_url (url, &input_file, NULL, NULL, &dt, false);
++ status = retrieve_url (url, &input_file, NULL, NULL, &dt, false, iri);
if (status != RETROK)
return status;
+
+ if (dt & TEXTHTML)
+ html = true;
}
else
input_file = (char *) file;