Date: Fri, 27 Mar 2009 14:31:32 +0100 From: Rene Ladan <rene@freebsd.org> To: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= <gabor@FreeBSD.org> Cc: Gabor Pali <pgj@FreeBSD.org>, doc@FreeBSD.org, Tom Rhodes <trhodes@FreeBSD.org>, Robert Watson <rwatson@FreeBSD.org>, Giorgos Keramidas <keramida@freebsd.org>, svn-src-head@freebsd.org, Rene Ladan <rene@freebsd.org>, "Sean C. Farley" <scf@FreeBSD.org> Subject: Re: NLS additions to I18N chapter of developers-handbook [Was: Re: svn commit: r189765 - in head: . lib/libc lib/libc/nls] Message-ID: <49CCD534.4000304@freebsd.org> In-Reply-To: <49CCD044.3010308@FreeBSD.org> References: <200903131040.n2DAecSO061131@svn.freebsd.org> <alpine.BSF.2.00.0903131312380.61873@fledge.watson.org> <49BB0DF0.3020907@FreeBSD.org> <alpine.BSF.2.00.0903181154050.99720@fledge.watson.org> <49CBFC02.2000506@FreeBSD.org> <49CCCE52.3000603@freebsd.org> <49CCD044.3010308@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49CCD534.4000304>