From db5b76e6fe48fbcf13953fc26c459c1ccdb3fcc2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 11 May 2016 18:25:17 -0400 Subject: move the setlocale call to the window backend since that's why i'm actually calling it --- src/runes.c | 4 ---- src/runesd.c | 4 ---- src/window-backend-xlib.c | 3 +++ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/runes.c b/src/runes.c index 881c5f9..b7ec368 100644 --- a/src/runes.c +++ b/src/runes.c @@ -1,5 +1,3 @@ -#include - #include "runes.h" #include "loop.h" @@ -11,8 +9,6 @@ int main (int argc, char *argv[]) RunesLoop *loop; RunesWindowBackend *wb; - setlocale(LC_ALL, ""); - loop = runes_loop_new(); wb = runes_window_backend_new(); runes_term_register_with_loop(runes_term_new(argc, argv, wb), loop); diff --git a/src/runesd.c b/src/runesd.c index 2fa5f6b..6a26d6d 100644 --- a/src/runesd.c +++ b/src/runesd.c @@ -1,5 +1,3 @@ -#include - #include "runes.h" #include "loop.h" @@ -18,8 +16,6 @@ int main (int argc, char *argv[]) runes_die("runesd takes no arguments; pass them to runesc instead."); } - setlocale(LC_ALL, ""); - loop = runes_loop_new(); wb = runes_window_backend_new(); daemon = runes_daemon_new(loop, wb); diff --git a/src/window-backend-xlib.c b/src/window-backend-xlib.c index 651437c..aeb9bf1 100644 --- a/src/window-backend-xlib.c +++ b/src/window-backend-xlib.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -29,6 +30,8 @@ RunesWindowBackend *runes_window_backend_new() RunesWindowBackend *wb; XInitThreads(); + + setlocale(LC_ALL, ""); XSetLocaleModifiers(""); wb = calloc(1, sizeof(RunesWindowBackend)); -- cgit v1.2.3-54-g00ecf