mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix checking of iconv_open return code.
Based on libiconv documentation, the iconv_open function returns (iconv_t)(-1). Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
c5f2c7fcef
commit
e43ae39dff
@ -1,3 +1,7 @@
|
|||||||
|
2014-07-07 Tomas Hozza <thozza@redhat.com>
|
||||||
|
|
||||||
|
* iri.c (locale_to_utf8): Fix checking of iconv_open return code.
|
||||||
|
|
||||||
2014-07-05 Darshit Shah <darnir@gmail.com>
|
2014-07-05 Darshit Shah <darnir@gmail.com>
|
||||||
|
|
||||||
* cookies.c (check_domain_match): Libpsl requires that all domain names
|
* cookies.c (check_domain_match): Libpsl requires that all domain names
|
||||||
|
@ -129,7 +129,7 @@ locale_to_utf8 (const char *str)
|
|||||||
return str;
|
return str;
|
||||||
|
|
||||||
l2u = iconv_open ("UTF-8", opt.locale);
|
l2u = iconv_open ("UTF-8", opt.locale);
|
||||||
if (l2u != (iconv_t)(-1))
|
if (l2u == (iconv_t)(-1))
|
||||||
{
|
{
|
||||||
logprintf (LOG_VERBOSE, _("Conversion from %s to %s isn't supported\n"),
|
logprintf (LOG_VERBOSE, _("Conversion from %s to %s isn't supported\n"),
|
||||||
quote (opt.locale), quote ("UTF-8"));
|
quote (opt.locale), quote ("UTF-8"));
|
||||||
|
Loading…
Reference in New Issue
Block a user