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

Bug#175370: Why so many locale_printf?



On Mon, 2003-01-13 at 02:12, Tomohiro KUBOTA wrote:
> Hi,
> 
> I found many substitution of printf() family of functions
> into locale_printf() and so on.  I guess it converts from
> UTF-8 into locale encoding.

Right.

> However, I also found that gettext strings, _("something"),
> is used for parameters for locale_printf().  Since gettext
> passes translated strings in locale encoding, I don't think
> further conversion is needed.  (Rather, it is harmful.)
> Am I missing something?

Yes; I told gettext to return strings in UTF-8 encoding, by saying:

bind_textdomain_codeset(PACKAGE, "UTF-8");

That way dpkg manipulates all strings in UTF-8 encoding internally.




Reply to: