mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Emit a message if we found invalid or incomplete multibyte sequences
This commit is contained in:
parent
d687972c50
commit
85185bde1b
@ -185,6 +185,10 @@ do_conversion (iconv_t cd, char *in, size_t inlen, char **out)
|
||||
/* Incomplete or invalid multibyte sequence */
|
||||
if (errno == EINVAL || errno == EILSEQ)
|
||||
{
|
||||
if (!invalid)
|
||||
logprintf (LOG_VERBOSE,
|
||||
"Incomplete or invalide multibyte sequence encountered\n");
|
||||
|
||||
invalid++;
|
||||
**out = *in;
|
||||
in++;
|
||||
|
Loading…
Reference in New Issue
Block a user