Re: gettext usage in libraries



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   `------------------------
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]