From owner-svn-src-stable-8@FreeBSD.ORG Sun Dec 6 21:07:47 2009 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85F331065676; Sun, 6 Dec 2009 21:07:47 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 736F98FC0C; Sun, 6 Dec 2009 21:07:47 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nB6L7laT031650; Sun, 6 Dec 2009 21:07:47 GMT (envelope-from edwin@svn.freebsd.org) Received: (from edwin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB6L7lFI031648; Sun, 6 Dec 2009 21:07:47 GMT (envelope-from edwin@svn.freebsd.org) Message-Id: <200912062107.nB6L7lFI031648@svn.freebsd.org> From: Edwin Groothuis Date: Sun, 6 Dec 2009 21:07:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200186 - stable/8/usr.bin/perror X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2009 21:07:47 -0000 Author: edwin Date: Sun Dec 6 21:07:47 2009 New Revision: 200186 URL: http://svn.freebsd.org/changeset/base/200186 Log: MFC of r199642 The output of perror(1) is now showing local messages for locales supported by libc/nls PR: bin/140499 Approved by: gnn@ Modified: stable/8/usr.bin/perror/perror.c Directory Properties: stable/8/usr.bin/perror/ (props changed) Modified: stable/8/usr.bin/perror/perror.c ============================================================================== --- stable/8/usr.bin/perror/perror.c Sun Dec 6 20:30:21 2009 (r200185) +++ stable/8/usr.bin/perror/perror.c Sun Dec 6 21:07:47 2009 (r200186) @@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include static void usage(void); @@ -43,6 +44,7 @@ main(int argc, char **argv) char *errstr; long errnum; + (void) setlocale(LC_MESSAGES, ""); if (argc != 2) usage();