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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to