From owner-svn-src-stable-7@FreeBSD.ORG Mon Jun 22 16:11:34 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB272106564A; Mon, 22 Jun 2009 16:11:34 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A8D7A8FC19; Mon, 22 Jun 2009 16:11:34 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5MGBYVx045995; Mon, 22 Jun 2009 16:11:34 GMT (envelope-from ume@svn.freebsd.org) Received: (from ume@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5MGBYPd045993; Mon, 22 Jun 2009 16:11:34 GMT (envelope-from ume@svn.freebsd.org) Message-Id: <200906221611.n5MGBYPd045993@svn.freebsd.org> From: Hajimu UMEMOTO Date: Mon, 22 Jun 2009 16:11:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194636 - stable/7/usr.bin/w X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 16:11:35 -0000 Author: ume Date: Mon Jun 22 16:11:34 2009 New Revision: 194636 URL: http://svn.freebsd.org/changeset/base/194636 Log: MFC 181922: %b and %p may contain multibyte characters. Noticed by: nyan Modified: stable/7/usr.bin/w/ (props changed) stable/7/usr.bin/w/pr_time.c Modified: stable/7/usr.bin/w/pr_time.c ============================================================================== --- stable/7/usr.bin/w/pr_time.c Mon Jun 22 16:06:38 2009 (r194635) +++ stable/7/usr.bin/w/pr_time.c Mon Jun 22 16:11:34 2009 (r194636) @@ -44,6 +44,7 @@ static const char sccsid[] = "@(#)pr_tim #include #include +#include #include "extern.h" @@ -82,7 +83,7 @@ pr_attime(time_t *started, time_t *now) } (void)strftime(buf, sizeof(buf), fmt, &tp); - (void)printf("%-7.7s", buf); + (void)wprintf(L"%-7.7s", buf); } /*