Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2016 16:48:37 +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: r308808 - head/usr.bin/locale
Message-ID:  <201611181648.uAIGmb3X080946@repo.freebsd.org>

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

Log:
  Lookup locale when print all keywords as well.
  
  Reported by:	dumbbell
  Reviewed by:	dumbbell
  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:23:31 2016	(r308807)
+++ head/usr.bin/locale/locale.c	Fri Nov 18 16:48:37 2016	(r308808)
@@ -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++;



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