aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/locale/locale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/locale/locale.c b/usr.bin/locale/locale.c
index b295b176c883..d0281b6335c7 100644
--- a/usr.bin/locale/locale.c
+++ b/usr.bin/locale/locale.c
@@ -283,8 +283,9 @@ main(int argc, char *argv[])
/* process '-c', '-k', or command line arguments. */
if (prt_categories || prt_keywords || argc > 0) {
- if (argc > 0) {
+ if (prt_keywords)
setlocale(LC_ALL, "");
+ if (argc > 0) {
while (argc > 0) {
showdetails(*argv);
argv++;