mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-06 21:50:05 +02:00
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=/branches/glib-2-14/; revision=5923
This commit is contained in:
committed by
Matthias Clasen
parent
46e8950f77
commit
42c934d8b9
@@ -1,3 +1,10 @@
|
||||
2007-11-24 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
||||
* glib/goption.c: Use g_print to print out --help text in
|
||||
locale encoding. (#469551, Takao Fujiwara)
|
||||
|
||||
2007-11-24 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
@@ -205,8 +205,9 @@ g_option_error_quark (void)
|
||||
* program functionality that should be displayed as a paragraph
|
||||
* below the usage line, use g_option_context_set_summary().
|
||||
*
|
||||
* Note that the @parameter_string is translated (see
|
||||
* g_option_context_set_translate_func()).
|
||||
* Note that the @parameter_string is translated using the
|
||||
* function set with g_option_context_set_translate_func(), so
|
||||
* it should normally be passed untranslated.
|
||||
*
|
||||
* Returns: a newly created #GOptionContext, which must be
|
||||
* freed with g_option_context_free() after use.
|
||||
@@ -771,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);
|
||||
|
Reference in New Issue
Block a user