Dear developers!
Please do not use printf for output localized strings.
Use g_print instead for correct recoding to 8-bit locales.
Patch for correct some message is attached.
P.S.
The same problem (output UTFed strings in 8-bit locale) exists
with popt (when it prints --help message). Will we intend to
replace popt with some glib function for I will some workaround
for popt?
--
Lav
Vitaly Lipatov
Russia, Saint-Petersburg
GNU! ALT Linux Team! WINE! LaTeX! LyX!
--- gnucash-bin.c.o 2006-01-21 12:36:46 +0300
+++ src/bin/gnucash-bin.c 2006-01-22 12:10:17 +0300
@@ -55,7 +55,7 @@
{
if (!is_development_version) return;
- printf("\n\n%s%s%s%s%s\n%s%s\n\n",
+ g_print("\n\n%s%s%s%s%s\n%s%s\n\n",
_("This is a development version. It may or may not work.\n"),
_("Report bugs and other problems to [EMAIL PROTECTED]"),
_("You can also lookup and file bug reports at http://bugzilla.gnome.org\n"),
@@ -226,9 +226,9 @@
while ((rc = poptGetNextOpt(pc)) > 0);
if (gnucash_show_version) {
- printf("GnuCash %s %s\n", VERSION,
+ g_print("GnuCash %s %s\n", VERSION,
is_development_version ? _("development version") : "");
- printf(_("built %s from r%s\n"), GNUCASH_BUILD_DATE, GNUCASH_SVN_REV);
+ g_print(_("built %s from r%s\n"), GNUCASH_BUILD_DATE, GNUCASH_SVN_REV);
exit(0);
}
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel