summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index fa49784..91082f3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -38,10 +38,6 @@
#include "ratpoison.h"
-#ifdef HAVE_LANGINFO_CODESET
-# include <langinfo.h>
-#endif
-
/* Command line options */
static struct option ratpoison_longopts[] =
{ {"help", no_argument, 0, 'h'},
@@ -309,9 +305,7 @@ main (int argc, char *argv[])
else
PRINT_ERROR (("X doesn't seem to support your locale.\n"));
-#ifdef HAVE_LANGINFO_CODESET
- utf8_locale = !strcmp (nl_langinfo (CODESET), "UTF-8");
-#endif
+ utf8_check_locale();
/* Parse the arguments */
myargv = argv;