Date: Sat, 26 Nov 2016 02:48:04 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r309180 - stable/11/usr.bin/locale Message-ID: <201611260248.uAQ2m48j056606@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Sat Nov 26 02:48:04 2016 New Revision: 309180 URL: https://svnweb.freebsd.org/changeset/base/309180 Log: MFC r308808, r308809: Lookup locale when print all keywords as well. Modified: stable/11/usr.bin/locale/locale.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.bin/locale/locale.c ============================================================================== --- stable/11/usr.bin/locale/locale.c Sat Nov 26 02:06:33 2016 (r309179) +++ stable/11/usr.bin/locale/locale.c Sat Nov 26 02:48:04 2016 (r309180) @@ -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 || argc > 0) 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?201611260248.uAQ2m48j056606>