Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2009 14:02:10 +0100
From:      Rene Ladan <rene@freebsd.org>
To:        =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= <gabor@FreeBSD.org>
Cc:        Tom Rhodes <trhodes@FreeBSD.org>, doc@FreeBSD.org, Gabor Pali <pgj@FreeBSD.org>, Robert Watson <rwatson@FreeBSD.org>, Giorgos Keramidas <keramida@freebsd.org>, svn-src-head@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:  <49CCCE52.3000603@freebsd.org>
In-Reply-To: <49CBFC02.2000506@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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2895A9050401B4689F52741E
Content-Type: multipart/mixed; boundary="------------090604030101000804030602"

This is a multi-part message in MIME format.
--------------090604030101000804030602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

G=E1bor K=F6vesd=E1n schreef:
> Robert Watson escribi=F3:
>> 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=20
>> catalogues?  Etc...
> I've made one more little addition, which can be useful to spare with=20
> error strings. :)
> http://kovesdan.org/patches/nls-doc2.diff
>=20

Looks nice.  I corrected a few minor mistakes in the attached patch.

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?

Regards,
Rene

--=20
http://www.rene-ladan.nl/

GPG fingerprint =3D ADBC ECCD EB5F A6B4 549F  600D 8C9E 647A E564 2BFC (s=
ubkeys.pgp.net)

--------------090604030101000804030602
Content-Type: text/plain;
 name="nls-doc2.rene.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
 filename="nls-doc2.rene.diff"

--- nls-doc2.diff	2009-03-27 13:37:58.000000000 +0100
+++ rene-nls-doc2.diff	2009-03-27 13:48:11.000000000 +0100
@@ -11,16 +11,16 @@
  #endif</programlisting>
 +
 +	<sect3>
-+	  <title>Reducing strings to localize</title>
++	  <title>Reducing Strings to Localize</title>
 +
 +	  <para>There is a good way of reducing the strings that
-+	    needs to be localized by using <application>libc</application>
++	    need to be localized by using <application>libc</application>
 +	    error messages.  This is also useful to just avoid duplication
 +	    and provide consistent error messages for the common errors
 +	    that can be encountered by a great many of programs.</para>
 +
-+	  <para>First, here is an example that do not use
-+	    <application>libc</application> error messages.</para>
++	  <para>First, here is an example that does not use
++	    <application>libc</application> error messages:</para>
 +
 +	  <programlisting>
 +#include &lt;err.h&gt;
@@ -48,7 +48,7 @@
 +	    and users will see the usual <quote>Not a directory</quote>
 +	    error message when they encounter this error.  This message
 +	    will probably seem more familiar to them.  Please note that
-+	    it was necessary to include <filename
++	    it is necessary to include <filename
 +	      class=3D"headerfile">errno.h</filename> in order to directly
 +	    access <varname>errno</varname>.</para>
 +

--------------090604030101000804030602--

--------------enig2895A9050401B4689F52741E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknMzp0ACgkQjJ5keuVkK/xnjgCeN4kf4wV28N/Cb2PP1lCf/TUj
fEQAoLfyE0Sr/64/2kOuyW4yT8pztE6X
=sX/N
-----END PGP SIGNATURE-----

--------------enig2895A9050401B4689F52741E--



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