diff options
Diffstat (limited to 'src/utf8.c')
-rw-r--r-- | src/utf8.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,3 +1,16 @@ -#include "utf8.h" +#include "ratpoison.h" + +#ifdef HAVE_LANGINFO_CODESET +# include <langinfo.h> +#endif int utf8_locale; + +int +utf8_check_locale(void) +{ +#ifdef HAVE_LANGINFO_CODESET + utf8_locale = !strcmp (nl_langinfo (CODESET), "UTF-8"); +#endif + return utf8_locale; +} |