Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2009 16:20:34 +0100
From:      =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= <gabor@FreeBSD.org>
To:        Robert Watson <rwatson@FreeBSD.org>
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
Message-ID:  <49BA79C2.4030800@FreeBSD.org>
In-Reply-To: <alpine.BSF.2.00.0903131312380.61873@fledge.watson.org>
References:  <200903131040.n2DAecSO061131@svn.freebsd.org> <alpine.BSF.2.00.0903131312380.61873@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49BA79C2.4030800>