]> sjero.net Git - wget/commitdiff
Emit a message if we found invalid or incomplete multibyte sequences
authorSaint Xavier <wget@sxav.eu>
Tue, 1 Jul 2008 17:34:37 +0000 (19:34 +0200)
committerSaint Xavier <wget@sxav.eu>
Tue, 1 Jul 2008 17:34:37 +0000 (19:34 +0200)
src/iri.c

index 1792ab6224fbd409ed9fcfce97778e10d60a8043..dfcb05783fa9fce2661275427b9ef18f5ba1c9ae 100644 (file)
--- 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++;