Re: gettext usage in libraries
- From: Ulrich Drepper <drepper redhat com>
- To: Gediminas Paulauskas <menesis delfi lt>
- Cc: gnome-2-0-list gnome org, gnome-hackers gnome org
- Subject: Re: gettext usage in libraries
- Date: 27 Nov 2001 09:32:32 -0800
Gediminas Paulauskas <menesis delfi lt> writes:
> 2. If .po file is in charset other than utf-8, translations are got in
> wrong charset. To avoid that, you can call
>
> bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8")
You never ever should call this function. Anywhere. It is a hack
which is used only in broken environments. The .po files (and .mo
files) contain all the information needed to make the correct
conversions.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]