[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFC: Solving gettext & UTF-8 brokenness

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-05-01 22:19:02 CEST

Erik Huelsmann wrote:

>[ ... about assuring the encoding returned by *gettext() calls ... ]
>
>
>
>>Can't we please just require that all our .po files are in UTF-8, and
>>instruct gettext to not do any translation? Can we do that without using
>>bind_textdomain_codeset?
>>
>>
>
>Reading the GNU gettext code I found an entry which says that no translation
>will be done when the admin section does not contain a "charset=" string. I
>guess that any implementation should behave that way (since there is no way
>to tell which encoding to translate from). There is no explicit call to
>instruct gettext not to do any translation though.
>
>
Seems reasonable, yes.

>I'd prefer a pre-commit hook to ensure the files are valid UTF-8 though.
>
>
We can do that. Even better, we can concoct a version of libintl for
Windows that doesn't link with libiconv, oh joy!

>I'm sorry you had to ask twice; the first time made me go look for defined
>functions not implementation implied solutions.
>
Ah, but you saved me the trouble of having to dig through gettext
documentatin myself. :-)

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 1 22:21:23 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.