From owner-cvs-all@FreeBSD.ORG Sun Nov 13 14:34:52 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC4F916A41F; Sun, 13 Nov 2005 14:34:52 +0000 (GMT) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [194.58.105.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 285BB43D49; Sun, 13 Nov 2005 14:34:51 +0000 (GMT) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.44 (FreeBSD)) id 1EbIwN-000NVf-Sm; Sun, 13 Nov 2005 17:34:43 +0300 Date: Sun, 13 Nov 2005 17:34:43 +0300 From: Slawa Olhovchenkov To: babkin@users.sf.net Message-ID: <20051113143443.GA26742@zxy.spb.ru> References: <16835761.1131552110894.JavaMail.root@vms074.mailsrvcs.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16835761.1131552110894.JavaMail.root@vms074.mailsrvcs.net> User-Agent: Mutt/1.5.7i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: Craig Rodrigues , src-committers@freebsd.org, Pawel Jakub Dawidek , John Baldwin , cvs-src@freebsd.org, cvs-all@freebsd.org, Poul-Henning Kamp Subject: Re: cvs commit: src/sys/kern vfs_mount.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2005 14:34:52 -0000 On Wed, Nov 09, 2005 at 10:01:50AM -0600, Sergey Babkin wrote: > >From: John Baldwin > >On Wednesday 09 November 2005 09:30 am, Pawel Jakub Dawidek wrote: > >> On Wed, Nov 09, 2005 at 03:08:39PM +0100, Poul-Henning Kamp wrote: > >> +> In message <20051109140419.GD15580@garage.freebsd.pl>, Pawel Jakub > >> Dawidek writes: +> > >> +> > >> +> >In current world order you can decide based on LC_ALL/LANG, etc. > >> +> > >> +> Read my lips: printf(9) and panic(9) are _never_ going to respect > >> +> any environment variable. > >> > >> Printf(9) and panic(9) are for administrator, not for user. > >> Anyway, let's stop here, as we're going nowhere. > > > >If you are going to provide l10n of these messages, you'll need to do it in > >userland somehow. However, if you return strings that task becomes a bit > >harder. I still prefer returning error data, not presentation, and letting > >something else (userland) take care of formatting error data and presenting > >it to the user. > > Maybe it would make sense to split the error code and > any extra data related to the error (for example, > the pathname that caused it or any extra explanation). > The error code would go into errno while only the > extra data would go into the string error. This > extra data won't need to be translaed anyway. A like VMS?