Use g_print to print out --help text in locale encoding. (#469551, Takao

2007-11-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c: Use g_print to print out --help text in
        locale encoding.  (#469551, Takao Fujiwara)



svn path=/trunk/; revision=5916
This commit is contained in:
Matthias Clasen 2007-11-23 05:58:51 +00:00 committed by Matthias Clasen
parent ccf93c8693
commit 0d723a240e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-23 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Use g_print to print out --help text in
locale encoding. (#469551, Takao Fujiwara)
2007-11-22 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c: Set length out param in list-returning functions

View File

@ -772,7 +772,7 @@ print_help (GOptionContext *context,
gchar *help;
help = g_option_context_get_help (context, main_help, group);
g_printf (help);
g_print ("%s", help);
g_free (help);
exit (0);