From: Saint Xavier Date: Tue, 1 Jul 2008 17:34:37 +0000 (+0200) Subject: Emit a message if we found invalid or incomplete multibyte sequences X-Git-Tag: v1.13~338^2~7^2~6^2~13^2~15 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=85185bde1b9729a27c3841560232266f77f13166 Emit a message if we found invalid or incomplete multibyte sequences --- diff --git a/src/iri.c b/src/iri.c index 1792ab62..dfcb0578 100644 --- a/src/iri.c +++ b/src/iri.c @@ -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++;