From owner-freebsd-doc@FreeBSD.ORG Fri Mar 27 13:10:33 2009 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EA7D1065673; Fri, 27 Mar 2009 13:10:33 +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 C69878FC19; Fri, 27 Mar 2009 13:10:32 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id B655A14D2BDB; Fri, 27 Mar 2009 14:10:30 +0100 (CET) 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 WFjLDIuEP0oE; Fri, 27 Mar 2009 14:10:30 +0100 (CET) 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 E52A814D2BD6; Fri, 27 Mar 2009 14:10:29 +0100 (CET) Message-ID: <49CCD044.3010308@FreeBSD.org> Date: Fri, 27 Mar 2009 14:10:28 +0100 From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Rene Ladan References: <200903131040.n2DAecSO061131@svn.freebsd.org> <49BB0DF0.3020907@FreeBSD.org> <49CBFC02.2000506@FreeBSD.org> <49CCCE52.3000603@freebsd.org> In-Reply-To: <49CCCE52.3000603@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Tom Rhodes , doc@FreeBSD.org, Gabor Pali , Robert Watson , Giorgos Keramidas , svn-src-head@freebsd.org, "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: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 13:10:33 -0000 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 -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org