From owner-svn-src-head@FreeBSD.ORG Fri Mar 27 13:31:40 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63FBB1065674; Fri, 27 Mar 2009 13:31:40 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 635C88FC1C; Fri, 27 Mar 2009 13:31:37 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by ewy19 with SMTP id 19so984116ewy.43 for ; Fri, 27 Mar 2009 06:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ddY8Gh8lsW0tUJWidnl7Oh2/A0Ga0M/nBMS/BLIhQ1c=; b=jWm2OSYke01T/FHh/GATXcSNZw+vXX2+oRPvJulRkZz/rWG/8xz/2pAh1GrNapZaEN 5Lp7mK0MGOrd9NIG6qctRVTdQTYTB0kRE8v7Hne3IPfN+MPZcfjBMx5LWwAwuxwMQBzq WapI9VjmR9y2q3pYtG3EBhospWB9o6hHSilxY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=aq24eFULzvU1Cgxobwr+bFjb2ar1e24d9nvhGYkuRuvn7koJstl+L78iB+f6xxwD5V +SNh4YFdctrQ9FcKQ0O8qqc8p1hgyYduEtKhQ2pkNfViSXldhA8opx2I76Ozb9kqWgyz boTcb0ef7QEFNssZwiiYifsPTnjBBkPjqmxjU= Received: by 10.216.47.85 with SMTP id s63mr811144web.58.1238160697191; Fri, 27 Mar 2009 06:31:37 -0700 (PDT) Received: from self.rene-ladan.nl ([77.163.174.49]) by mx.google.com with ESMTPS id 7sm1899591eyg.47.2009.03.27.06.31.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Mar 2009 06:31:36 -0700 (PDT) Sender: Rene Ladan Message-ID: <49CCD534.4000304@freebsd.org> Date: Fri, 27 Mar 2009 14:31:32 +0100 From: Rene Ladan Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= References: <200903131040.n2DAecSO061131@svn.freebsd.org> <49BB0DF0.3020907@FreeBSD.org> <49CBFC02.2000506@FreeBSD.org> <49CCCE52.3000603@freebsd.org> <49CCD044.3010308@FreeBSD.org> In-Reply-To: <49CCD044.3010308@FreeBSD.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Gabor Pali , doc@FreeBSD.org, Tom Rhodes , Robert Watson , Giorgos Keramidas , svn-src-head@freebsd.org, Rene Ladan , "Sean C. Farley" Subject: Re: NLS additions to I18N chapter of developers-handbook [Was: Re: svn commit: r189765 - in head: . lib/libc lib/libc/nls] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 13:31:41 -0000 Gábor Kövesdán schreef: > Rene Ladan escribió: >> Gábor Kövesdán schreef: >>> Robert Watson escribió: >>>> Do you have any advice on what to do for libraries that provide >>>> error strings in their own error spaces? Is it intended that the >>>> library's init and destroy functions will open and close >>>> catalogues? Will this work if the application the library is used >>>> by doesn't know about catalogues? Etc... >>> I've made one more little addition, which can be useful to spare with >>> error strings. :) >>> http://kovesdan.org/patches/nls-doc2.diff >>> >> >> Looks nice. I corrected a few minor mistakes in the attached patch. > Thanks! >> >> On my 8.0 box with localized libc, I get the English message when >> setting errno to ENOTDIR and calling err(1, NULL) in a test program. >> Is this to be expected? > No, something's wrong there. Are you sure LC_MESSAGES or LC_ALL is set > correctly? Here I get this: > > > ./sort -T fre > sort: Not a directory > > env LC_ALL=hu_HU.ISO8859-2 ./sort -T fre > sort: Nem könyvtár > > env LC_ALL=nl_NL.ISO8859-1 ./sort -T fre > sort: Dit is geen directory > I sometimes still get English messages even when I set both LC_ALL and LC_MESSAGES to nl_NL.ISO8859-1 : > echo $SHELL /bin/tcsh > ls bla ls: bla: Bestand of map niet gevonden > notacommand notacommand: Command not found output of { errno = ENOTDIR; err(1, NULL); } : do-err: Not a directory svn revision 189775 Any idea what could be wrong? Regards, Rene -- http://www.rene-ladan.nl/ GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC (subkeys.pgp.net)