X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9cf9f118998a7635485e13863d1bc16c1486bb05..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/mark.c diff --git a/uip/mark.c b/uip/mark.c index 439ea407..48ea7864 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -52,11 +52,7 @@ main (int argc, char **argv) struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; - setlocale(LC_ALL, ""); - invo_name = r1bindex (argv[0], '/'); - - /* read user profile/context */ - context_read(); + if (nmh_init(argv[0], 1)) { return 1; } arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -260,7 +256,7 @@ seq_printdebug (struct msgs *mp) int msgnum; char buf[BUFSIZ]; - printf ("\n"); + putchar('\n'); for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) { if (is_selected (mp, msgnum)) printf ("%*d: %s\n", DMAXFOLDER, msgnum,