From owner-svn-src-all@FreeBSD.ORG Fri May 22 10:36:56 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 583451065677; Fri, 22 May 2009 10:36:56 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 064648FC2F; Fri, 22 May 2009 10:36:55 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 71CDA14D586E; Fri, 22 May 2009 12:19:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6kPj4vfW4A3t; Fri, 22 May 2009 12:18:59 +0200 (CEST) Received: from [192.168.1.105] (catv-80-98-231-64.catv.broadband.hu [80.98.231.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 4DCF814D52E0; Fri, 22 May 2009 12:18:59 +0200 (CEST) Message-ID: <4A167C0F.7080705@FreeBSD.org> Date: Fri, 22 May 2009 12:18:55 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Bruce Evans References: <20090521132404.cc5be268.stas@FreeBSD.org> <20090521110115.GA50355@FreeBSD.org> <20090521.085256.-1989816394.imp@bsdimp.com> <20090522195717.U22330@delplex.bde.org> In-Reply-To: <20090522195717.U22330@delplex.bde.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 22 May 2009 11:25:43 +0000 Cc: unixmania@gmail.com, danfe@freebsd.org, src-committers@freebsd.org, peterjeremy@optushome.com.au, svn-src-all@freebsd.org, stas@freebsd.org, gnn@freebsd.org, svn-src-head@freebsd.org, "M. Warner Losh" Subject: Re: svn commit: r192398 - in head/usr.bin: . perror X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 10:36:57 -0000 Bruce Evans escribió: > On Thu, 21 May 2009, M. Warner Losh wrote: > >> In message: <20090521110115.GA50355@FreeBSD.org> >> Alexey Dokuchaev writes: >> : > Given how easy it is to "grep <> /usr/include/sys/errno.h" or >> : > perl -e '$! = <>; print "$!\n";' >> : > I'm not sure of the utility of this tool. >> : >> : User scripts should not depend on presence of system include files. >> : Now, just to mention, Nick's suggestion about dropping extra noise >> : actually good one. >> >> There's also internationalization that actually happens too, right? >> That doesn't happen with grep.. > > What about with "man errno". Man pages are slightly more likely to be > present than application (not system) include files, and man should > support localization. It gives more noise than grepping an include > file, but the noise might be signal and can be filtered. Our man page toolset doesn't really support localization. I haven't done big investigations but I remember that lack of ISO8859-2 support prevented us from translating man pages into Hungarian. Beside this, it isn't a flexible way of listing the error messages there because you have to explicitly list them or make some magic to generate the man page. But what if a specific translation changes? What if a new translation is added? One will have to keep these in sync then. While retrieving those messages from C code is trivial and no such considerations are needed, so I vote for the perror utility. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org