summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 19:28:31 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 19:46:06 +0200
commit9b7cfb7c8d8d337554ad7c5995ce75fac52c7d54 (patch)
treed2984feb328e1c2a05c80c75d1dd8032dafbb95b /src/main.c
parent997bb3428312779a6f5af0264fa772407184ec17 (diff)
downloadratpoison-9b7cfb7c8d8d337554ad7c5995ce75fac52c7d54.zip
Move utf8_locale to its own file
So that we can easily use it from tests.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index a287258..e1875fa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -268,10 +268,10 @@ init_defaults (void)
#endif
#ifdef HAVE_LANGINFO_CODESET
- defaults.utf8_locale = !strcmp (nl_langinfo (CODESET), "UTF-8");
+ utf8_locale = !strcmp (nl_langinfo (CODESET), "UTF-8");
#endif
PRINT_DEBUG (("UTF-8 locale detected: %s\n",
- defaults.utf8_locale ? "yes" : "no"));
+ utf8_locale ? "yes" : "no"));
defaults.fgcolor_string = xstrdup ("black");
defaults.bgcolor_string = xstrdup ("white");