diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2009-11-13 03:59:44 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2009-11-13 03:59:44 +0000 |
commit | 347c7f559c46fa6149efda89c468411d7912b456 (patch) | |
tree | 1c79b19d6211e67764e811b9dc53ab22124bf163 /usr.bin/systat | |
parent | e44920da1aea7386f4aba3baf8d198f3bbf69408 (diff) | |
download | src-347c7f559c46fa6149efda89c468411d7912b456.tar.gz src-347c7f559c46fa6149efda89c468411d7912b456.zip |
Use ncursesw to output the date field of vmstat display
with multi-byte string, correctly.
Notes
Notes:
svn path=/head/; revision=199242
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/systat/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/Makefile b/usr.bin/systat/Makefile index 4f5f229725b6..49bb9981c0d3 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 6f6b99406860..d092f10fe19a 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) { |