X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/adfed5f72bc07ac7de8dfc62188338d4d4f25a38..8e0f9bd3daae9d05dec58026d5a5924367e4e874:/uip/mhshowsbr.c diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 02b36412..a87778ef 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -1152,7 +1152,9 @@ iconv_start: } if (errno == EINVAL) { /* middle of multi-byte sequence */ - write (fd, dest_buffer, outbytes_before - outbytes); + if (write (fd, dest_buffer, outbytes_before - outbytes) < 0) { + advise (dest, "write"); + } fseeko (*fp, -inbytes, SEEK_CUR); if (end > 0) bytes_to_read += inbytes; /* advise(NULL, "convert_charset: EINVAL"); */