]> diplodocus.org Git - nmh/blobdiff - uip/whatnow.c
Support iCalendar event request files that don't end with a newline.
[nmh] / uip / whatnow.c
index 4950514e6bcf0a1857a92b80d83bcc884c86340b..4fffddb95d4d134bed4ca3b96c8685fecca67dbd 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * whatnow.c -- the nmh `WhatNow' shell
+/* whatnow.c -- the nmh `WhatNow' shell
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -13,6 +11,7 @@
 int
 main (int argc, char **argv)
 {
-    setlocale(LC_ALL, "");
+    if (nmh_init(argv[0], 2)) { return 1; }
+
     return WhatNow (argc, argv);
 }