242,246d241 < /* We must set LC_NUMERIC to default, or otherwise */ < /* we'll end with localised SVG files :-( */ < < setlocale (LC_NUMERIC, "C"); < 250a246 > 251a248,252 > // temporarily switch gettext encoding to locale, so that help messages can be output properly > const gchar *charset; > g_get_charset(&charset); > bind_textdomain_codeset (GETTEXT_PACKAGE, charset); > 256a258,260 > > // now switch gettext back to UTF-8 (for GUI) > bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); 258a263 > 354,358d358 < /* We must set LC_NUMERIC to default, or otherwise */ < /* we'll end with localised SVG files :-( */ < < setlocale (LC_NUMERIC, "C"); < 364,367c364,375 < ctx = poptGetContext (NULL, argc, argv, options, 0); < g_return_val_if_fail (ctx != NULL, 1); < fl = sp_process_args (ctx); < poptFreeContext (ctx); --- > // temporarily switch gettext encoding to locale, so that help messages can be output properly > const gchar *charset; > g_get_charset(&charset); > bind_textdomain_codeset (GETTEXT_PACKAGE, charset); > > ctx = poptGetContext (NULL, argc, argv, options, 0); > g_return_val_if_fail (ctx != NULL, 1); > fl = sp_process_args (ctx); > poptFreeContext (ctx); > > // now switch gettext back to UTF-8 (for GUI) > bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");