Author: ume
Date: Sat Nov 26 02:48:59 2016
New Revision: 309181
URL: https://svnweb.freebsd.org/changeset/base/309181

Log:
  MFC r308808, r308809: Lookup locale when print all keywords as well.

Modified:
  stable/10/usr.bin/locale/locale.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/locale/locale.c
==============================================================================
--- stable/10/usr.bin/locale/locale.c   Sat Nov 26 02:48:04 2016        
(r309180)
+++ stable/10/usr.bin/locale/locale.c   Sat Nov 26 02:48:59 2016        
(r309181)
@@ -281,8 +281,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 || argc > 0)
                        setlocale(LC_ALL, "");
+               if (argc > 0) {
                        while (argc > 0) {
                                showdetails(*argv);
                                argv++;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to