Report useful error message on broken file(1).
[mmh] / uip / packf.c
index 70065c0..763b6e7 100644 (file)
@@ -14,7 +14,7 @@
 
 static struct swit switches[] = {
 #define VERSIONSW  0
-       { "version", 0 },
+       { "Version", 0 },
 #define HELPSW  1
        { "help", 0 },
        { NULL, 0 }
@@ -30,9 +30,7 @@ main(int argc, char **argv)
        struct msgs_array msgs = { 0, 0, NULL };
        struct msgs *mp;
 
-#ifdef LOCALE
        setlocale(LC_ALL, "");
-#endif
        invo_name = mhbasename(argv[0]);
 
        /* read user profile/context */
@@ -103,7 +101,7 @@ main(int argc, char **argv)
                                admonish(msgnam, "unable to read message");
                                break;
                        }
-                       if (mbx_copy(fileno(stdout), fd) == NOTOK) {
+                       if (mbox_copy(fileno(stdout), fd) == NOTOK) {
                                adios(NULL, "error writing to stdout");
                        }
                        close(fd);