Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2016 17:18:05 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308809 - head/usr.bin/locale
Message-ID:  <201611181718.uAIHI5be092942@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Fri Nov 18 17:18:05 2016
New Revision: 308809
URL: https://svnweb.freebsd.org/changeset/base/308809

Log:
  We need to lookup locale when command line arguments
  are specified, as well.
  MFC after:	1 week

Modified:
  head/usr.bin/locale/locale.c

Modified: head/usr.bin/locale/locale.c
==============================================================================
--- head/usr.bin/locale/locale.c	Fri Nov 18 16:48:37 2016	(r308808)
+++ head/usr.bin/locale/locale.c	Fri Nov 18 17:18:05 2016	(r308809)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611181718.uAIHI5be092942>