summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2009-11-22 17:16:37 +0000
committerume <ume@FreeBSD.org>2009-11-22 17:16:37 +0000
commitc60eb36144a30202454652add05b56a0c4ecfde0 (patch)
treed82da32a9ab020ff8cf0c1e40f54796bb5c5aac0 /usr.bin/systat
parent449af2da885b66a5779083760a82df7a3fd17c60 (diff)
downloadFreeBSD-src-c60eb36144a30202454652add05b56a0c4ecfde0.zip
FreeBSD-src-c60eb36144a30202454652add05b56a0c4ecfde0.tar.gz
MFC r199242: Use ncursesw to output the date field of vmstat
display with multi-byte string, correctly.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/Makefile2
-rw-r--r--usr.bin/systat/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/Makefile b/usr.bin/systat/Makefile
index 4f5f229..49bb998 100644
--- a/usr.bin/systat/Makefile
+++ b/usr.bin/systat/Makefile
@@ -15,6 +15,6 @@ CFLAGS+= -DINET6
.endif
DPADD= ${LIBCURSES} ${LIBM} ${LIBDEVSTAT} ${LIBKVM}
-LDADD= -lcurses -lm -ldevstat -lkvm
+LDADD= -lcursesw -lm -ldevstat -lkvm
.include <bsd.prog.mk>
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 6f6b994..d092f10 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -87,7 +87,7 @@ main(int argc, char **argv)
char errbuf[_POSIX2_LINE_MAX], dummy;
size_t size;
- (void) setlocale(LC_TIME, "");
+ (void) setlocale(LC_ALL, "");
argc--, argv++;
while (argc > 0) {
OpenPOWER on IntegriCloud