summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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