From 62fb102184b82ad1c7798c16fcb5f390ddf2ba91 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 11 Aug 2021 12:03:07 -0600 Subject: [PATCH] [util] Move add_main_options() invocation --- util/options.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/options.hh b/util/options.hh index ff542f4c5..824981fe5 100644 --- a/util/options.hh +++ b/util/options.hh @@ -92,9 +92,7 @@ struct option_parser_t : usage_str (usage), context (g_option_context_new (usage)), to_free (g_ptr_array_new ()) - { - add_main_options (); - } + {} static void _g_free_g_func (void *p, void * G_GNUC_UNUSED) { g_free (p); } @@ -203,6 +201,8 @@ option_parser_t::add_main_options () inline void option_parser_t::parse (int *argc, char ***argv) { + add_main_options (); + setlocale (LC_ALL, ""); GError *parse_error = nullptr;