X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/942423b7c3b47c18c78f2fe92a1f741c28224234..43cfc6660af9677d520d578713f57ae0d8d1b81f:/uip/mhfixmsg.c diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 20bb2835..bafd78e2 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -137,9 +137,7 @@ main (int argc, char **argv) { done = freects_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = r1bindex (argv[0], '/'); /* read user profile/context */ @@ -1734,8 +1732,8 @@ strip_crs (CT ct, int *message_mods) { ++*message_mods; if (verbosw) { - report (NULL, - begin == 0 && end == 0 ? "(tmpfile)" : *file, + report (ct->c_partno, + begin == 0 && end == 0 ? "" : *file, "stripped CRs"); } } @@ -1885,7 +1883,8 @@ convert_codeset (CT ct, char *dest_codeset, int *message_mods) { min (bytes_to_read, sizeof src_buffer), *fp)) > 0) { char dest_buffer[BUFSIZ]; - char *ib = src_buffer, *ob = dest_buffer; + ICONV_CONST char *ib = src_buffer; + char *ob = dest_buffer; size_t outbytes = sizeof dest_buffer; size_t outbytes_before = outbytes;