summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-01 12:18:13 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-01 12:18:13 -0300
commit2475f29dc2e08668a326a5964906f070bd6b4169 (patch)
tree070ba3eef10392940e247f8b4609d44d3c9474ba
parent1082b8351a4f5ecaaf034310efd609132b701777 (diff)
downloadeeshow-2475f29dc2e08668a326a5964906f070bd6b4169.tar.gz
eeshow-2475f29dc2e08668a326a5964906f070bd6b4169.tar.bz2
eeshow-2475f29dc2e08668a326a5964906f070bd6b4169.zip
main.c (main): call setlocale after gtk_init messed up things, not before
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index fe033aa..1248802 100644
--- a/main.c
+++ b/main.c
@@ -162,16 +162,16 @@ int main(int argc, char **argv)
return 1;
}
- setlocale(LC_ALL, "C"); /* restore sanity */
-
for (dashdash = 1; dashdash != argc; dashdash++)
if (!strcmp(argv[dashdash], "--")) {
have_dashdash = 1;
break;
}
- if (!have_dashdash)
+ if (!have_dashdash) {
gtk_init(&argc, &argv);
+ setlocale(LC_ALL, "C"); /* restore sanity */
+ }
while ((c = getopt(dashdash, argv, "1evC:E:F:H:LN:OPSV")) != EOF)
switch (c) {