aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-04 20:18:42 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-04 20:19:30 +0100
commita346ff8d0290f78fe3dab4ea52bfa3ca312819fc (patch)
tree4d5785bf94d0ff4bddb03e06a9501616c0bf141a
parent9045898fb68296fbe2b2dae3016b1e8e9fe1f509 (diff)
downloadfiv-a346ff8d0290f78fe3dab4ea52bfa3ca312819fc.tar.gz
fiv-a346ff8d0290f78fe3dab4ea52bfa3ca312819fc.tar.xz
fiv-a346ff8d0290f78fe3dab4ea52bfa3ca312819fc.zip
Don't needlessly call setlocale()
gtk_init_with_args() does it for us.
-rw-r--r--fastiv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fastiv.c b/fastiv.c
index 783540e..53c076e 100644
--- a/fastiv.c
+++ b/fastiv.c
@@ -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[] = {