Use ncursesw to output the date field of vmstat display
with multi-byte string, correctly.
This commit is contained in:
parent
e44920da1a
commit
347c7f559c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199242
@ -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>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user