Date: Fri, 13 Nov 2009 03:59:44 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r199242 - head/usr.bin/systat Message-ID: <200911130359.nAD3xi4O053582@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Fri Nov 13 03:59:44 2009 New Revision: 199242 URL: http://svn.freebsd.org/changeset/base/199242 Log: Use ncursesw to output the date field of vmstat display with multi-byte string, correctly. Modified: head/usr.bin/systat/Makefile head/usr.bin/systat/main.c Modified: head/usr.bin/systat/Makefile ============================================================================== --- head/usr.bin/systat/Makefile Fri Nov 13 02:50:50 2009 (r199241) +++ head/usr.bin/systat/Makefile Fri Nov 13 03:59:44 2009 (r199242) @@ -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> Modified: head/usr.bin/systat/main.c ============================================================================== --- head/usr.bin/systat/main.c Fri Nov 13 02:50:50 2009 (r199241) +++ head/usr.bin/systat/main.c Fri Nov 13 03:59:44 2009 (r199242) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911130359.nAD3xi4O053582>