summaryrefslogtreecommitdiff
path: root/usr.bin/locale
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2016-11-18 17:18:05 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2016-11-18 17:18:05 +0000
commit454d904a0e06ff0905af665cd04164c22a1e3ecd (patch)
tree95164d3cb213e6660362bb909077a50907ac340a /usr.bin/locale
parentbfe9db5816995ab07f6d1141b40a73abba8b86a1 (diff)
downloadsrc-test-454d904a0e06ff0905af665cd04164c22a1e3ecd.tar.gz
src-test-454d904a0e06ff0905af665cd04164c22a1e3ecd.zip
We need to lookup locale when command line arguments
are specified, as well. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=308809
Diffstat (limited to 'usr.bin/locale')
-rw-r--r--usr.bin/locale/locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/locale/locale.c b/usr.bin/locale/locale.c
index d0281b6335c7b..e4409dad4c3be 100644
--- a/usr.bin/locale/locale.c
+++ b/usr.bin/locale/locale.c
@@ -283,7 +283,7 @@ main(int argc, char *argv[])
/* process '-c', '-k', or command line arguments. */
if (prt_categories || prt_keywords || argc > 0) {
- if (prt_keywords)
+ if (prt_keywords || argc > 0)
setlocale(LC_ALL, "");
if (argc > 0) {
while (argc > 0) {