summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal/ncal.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-06-10 23:26:47 +0000
committerache <ache@FreeBSD.org>2001-06-10 23:26:47 +0000
commit2575a21628fe3fc884c345226388d3d580682ff1 (patch)
tree0f40545856a8636419f63fe6032fd122e42919c9 /usr.bin/ncal/ncal.c
parent7183d49acf6d9c3725c3e96da424d7f470e671fb (diff)
downloadFreeBSD-src-2575a21628fe3fc884c345226388d3d580682ff1.zip
FreeBSD-src-2575a21628fe3fc884c345226388d3d580682ff1.tar.gz
Handle ASCII and US-ASCII aliases
Diffstat (limited to 'usr.bin/ncal/ncal.c')
-rw-r--r--usr.bin/ncal/ncal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c
index 186c6f6..35d883a 100644
--- a/usr.bin/ncal/ncal.c
+++ b/usr.bin/ncal/ncal.c
@@ -205,7 +205,9 @@ main(int argc, char *argv[])
locale = setlocale(LC_TIME, NULL);
if (locale == NULL ||
strcmp(locale, "C") == 0 ||
- strcmp(locale, "POSIX") == 0)
+ strcmp(locale, "POSIX") == 0 ||
+ strcmp(locale, "ASCII") == 0 ||
+ strcmp(locale, "US-ASCII") == 0)
locale = "_US";
q = switches + sizeof(switches) / sizeof(struct djswitch);
for (p = switches; p != q; p++)
OpenPOWER on IntegriCloud