* write-po.c (wrap): Report error on incomplete multibyte sequence
at the end of input bytes.
Reported by Jakub Wilk at:
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763820>.
+2014-10-08 Daiki Ueno <ueno@gnu.org>
+
+ * write-po.c (wrap): Report error on incomplete multibyte sequence
+ at the end of input bytes.
+ Reported by Jakub Wilk at:
+ <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763820>.
+
2014-09-30 Daiki Ueno <ueno@gnu.org>
* x-c.c (literalstring_parse): Fix octal character escape handling.
_("invalid multibyte sequence"));
continue;
}
+ else if (errno == EINVAL)
+ {
+ /* This could happen if an incomplete
+ multibyte sequence at the end of input
+ bytes. */
+ po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, false,
+ _("incomplete multibyte sequence"));
+ continue;
+ }
else
abort ();
}