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) {
_______________________________________________
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