summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-23 21:06:31 +0000
committerache <ache@FreeBSD.org>1995-10-23 21:06:31 +0000
commit426182c17ec421992aec26285b1c8bb9445f0f9e (patch)
treef2b08537abde6ab1c68040b25a57e407d8f7a946 /bin/ps/ps.c
parentac2673a0e9bf021ce3a069eb47108aa2d039515c (diff)
downloadFreeBSD-src-426182c17ec421992aec26285b1c8bb9445f0f9e.zip
FreeBSD-src-426182c17ec421992aec26285b1c8bb9445f0f9e.tar.gz
Add setlocale LC_CTYPE|LC_TIME
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r--bin/ps/ps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index b6347d5..f7f3485 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ps.c,v 1.6 1995/03/19 13:29:06 joerg Exp $
+ * $Id: ps.c,v 1.7 1995/05/30 00:07:05 rgrimes Exp $
*/
#ifndef lint
@@ -63,6 +63,7 @@ static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <locale.h>
#include "ps.h"
@@ -116,6 +117,7 @@ main(argc, argv)
int prtheader, wflag, what, xflg;
char *nlistf, *memf, *swapf, errbuf[256];
+ (void) setlocale(LC_CTYPE|LC_TIME, "");
if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) ||
OpenPOWER on IntegriCloud