From owner-svn-src-all@FreeBSD.ORG Fri Mar 13 15:36:45 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 26D4B106566C; Fri, 13 Mar 2009 15:36:45 +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 D0A3C8FC15; Fri, 13 Mar 2009 15:36:44 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 106D114D87AB; Fri, 13 Mar 2009 16:20:42 +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 AWZJv+ednsbm; Fri, 13 Mar 2009 16:20:37 +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 C8FE214D87AD; Fri, 13 Mar 2009 16:20:36 +0100 (CET) Message-ID: <49BA79C2.4030800@FreeBSD.org> Date: Fri, 13 Mar 2009 16:20:34 +0100 From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Robert Watson References: <200903131040.n2DAecSO061131@svn.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r189765 - in head: . lib/libc lib/libc/nls 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, 13 Mar 2009 15:36:45 -0000 Robert Watson escribió: > > On Fri, 13 Mar 2009, Gabor Kovesdan wrote: > >> - Reenable Native Language Support in libc. This feature was >> disabled due >> to possible breakages in the catalog handling code. Since then, that >> code has been replaced by the secure code from NetBSD but NLS in libc >> remained turned off. Tests have shown that the feature is stable and >> working so we can now turn it on again. > > Do we have a nice tutorialish document somewhere on what people > writing new command line tools or libraries should do in order to > address localization requirements, or at least, make it easier for > other people to do so? I'm afraid I, at least, live in a world > without catalogues, but a quick and practical guide to what The Right > Thing Is for FreeBSD would make it much easier for me to do something > a bit more mature. I don't know about any documentation, but I can add some snippets to developers-handbook if I can find some time. I added catalog support to BSD grep (my SoC 2008 project), so I found out how to deal with catalogs. For the meantime, BSD grep can be used as a quick reference, the code snippets in grep.c are quite clear. Oh, and the best thing is that if you use err(), which reads errno to exit with an error message, you have localized messages out of the box. E.g., for BSD grep there are 10 more messages, but the rest is done via err(). -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org