Don't needlessly call setlocale()

gtk_init_with_args() does it for us.
This commit is contained in:
Přemysl Eric Janouch 2021-11-04 20:18:42 +01:00
parent 9045898fb6
commit a346ff8d02
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 0 additions and 4 deletions

View File

@ -19,7 +19,6 @@
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <locale.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@ -277,9 +276,6 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEvent *event,
int
main(int argc, char *argv[])
{
if (!setlocale(LC_CTYPE, ""))
exit_fatal("cannot set locale");
gboolean show_version = FALSE;
gchar **path_args = NULL;
const GOptionEntry options[] = {