svn commit: r189765 - in head: . lib/libc lib/libc/nls
Gábor Kövesdán
gabor at FreeBSD.org
Fri Mar 13 08:36:45 PDT 2009
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 at FreeBSD.org .:|:. gabor at kovesdan.org
WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
More information about the svn-src-all
mailing list