diff options
author | ache <ache@FreeBSD.org> | 1996-05-10 16:30:22 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-05-10 16:30:22 +0000 |
commit | e18782182041e3c1e4a504c753d97480e206140b (patch) | |
tree | 2ee499be5fe987b5fb50fd8e4f1d0fba39c3a560 /usr.bin/calendar/calendar.c | |
parent | ee79fb34b7ffbfb608645cae031e188a0c427e27 (diff) | |
download | FreeBSD-src-e18782182041e3c1e4a504c753d97480e206140b.zip FreeBSD-src-e18782182041e3c1e4a504c753d97480e206140b.tar.gz |
Localize it
Handle Orthodox Eastern
-Wall cleanup
Diffstat (limited to 'usr.bin/calendar/calendar.c')
-rw-r--r-- | usr.bin/calendar/calendar.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/calendar/calendar.c b/usr.bin/calendar/calendar.c index c338423..95ecebd 100644 --- a/usr.bin/calendar/calendar.c +++ b/usr.bin/calendar/calendar.c @@ -32,22 +32,23 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1989, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; +static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #endif /* not lint */ +#include <err.h> +#include <errno.h> +#include <locale.h> #include <pwd.h> #include <stdio.h> -#include <unistd.h> -#include <errno.h> -#include <err.h> #include <stdlib.h> #include <time.h> +#include <unistd.h> #include "pathnames.h" #include "calendar.h" @@ -67,6 +68,8 @@ main(argc, argv) extern int optind; int ch; + (void) setlocale(LC_ALL, ""); + while ((ch = getopt(argc, argv, "?-af:t:A:B:")) != EOF) switch (ch) { case '-': /* backward contemptible */ |