Use ncursesw to output the date field of vmstat display

with multi-byte string, correctly.
This commit is contained in:
Hajimu UMEMOTO 2009-11-13 03:59:44 +00:00
parent e44920da1a
commit 347c7f559c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199242
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

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