Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2012 23:49:20 +0000 (UTC)
From:      Greg Lehey <grog@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243201 - head/usr.bin/locale
Message-ID:  <201211172349.qAHNnKpC009530@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grog
Date: Sat Nov 17 23:49:20 2012
New Revision: 243201
URL: http://svnweb.freebsd.org/changeset/base/243201

Log:
  Correctly handle keywords without options.
  
  Reported by: swills@
  MFC after:	14 days

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

Modified: head/usr.bin/locale/locale.c
==============================================================================
--- head/usr.bin/locale/locale.c	Sat Nov 17 23:44:01 2012	(r243200)
+++ head/usr.bin/locale/locale.c	Sat Nov 17 23:49:20 2012	(r243201)
@@ -279,8 +279,8 @@ main(int argc, char *argv[])
 				exit(0);
 			}
 
-	/* process '-c' and/or '-k' */
-	if (prt_categories || prt_keywords) {
+	/* process '-c', '-k', or command line arguments. */
+	if (prt_categories || prt_keywords || argc > 0) {
 		if (argc > 0) {
 			setlocale(LC_ALL, "");
 			while (argc > 0) {



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