svn commit: r199658 - stable/8/usr.bin/systat

Hajimu UMEMOTO ume at FreeBSD.org
Sun Nov 22 17:16:38 UTC 2009


Author: ume
Date: Sun Nov 22 17:16:37 2009
New Revision: 199658
URL: http://svn.freebsd.org/changeset/base/199658

Log:
  MFC r199242: Use ncursesw to output the date field of vmstat
  display with multi-byte string, correctly.

Modified:
  stable/8/usr.bin/systat/Makefile
  stable/8/usr.bin/systat/main.c
Directory Properties:
  stable/8/usr.bin/systat/   (props changed)

Modified: stable/8/usr.bin/systat/Makefile
==============================================================================
--- stable/8/usr.bin/systat/Makefile	Sun Nov 22 17:08:52 2009	(r199657)
+++ stable/8/usr.bin/systat/Makefile	Sun Nov 22 17:16:37 2009	(r199658)
@@ -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: stable/8/usr.bin/systat/main.c
==============================================================================
--- stable/8/usr.bin/systat/main.c	Sun Nov 22 17:08:52 2009	(r199657)
+++ stable/8/usr.bin/systat/main.c	Sun Nov 22 17:16:37 2009	(r199658)
@@ -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) {


More information about the svn-src-all mailing list