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

Bug#175370: Why so many locale_printf?



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.

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?


I mean,

#include <stdio.h>
main(){
    all needed initialization for gettext and locale;
    printf(_("something\n"));  /* not locale_printf */
}

works, for example, both in de_DE.ISO-8859-1 and de_DE.UTF-8,
regardless of the encoding of po file.


---
Tomohiro KUBOTA <kubota@debian.org>
http://www.debian.or.jp/~kubota/







Reply to: