Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 2009 17:16:37 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r199658 - stable/8/usr.bin/systat
Message-ID:  <200911221716.nAMHGbKK024532@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911221716.nAMHGbKK024532>