summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ad06a7e..5e1f902 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,7 +61,9 @@ main(int argc, char *argv[])
#if defined(ENABLE_NLS) && ENABLE_NLS
bindtextdomain(PACKAGE, LOCALEDIR);
+#if defined(HAVE_BIND_TEXTDOMAIN_CODESET) && HAVE_BIND_TEXTDOMAIN_CODESET
bind_textdomain_codeset(PACKAGE, "UTF-8");
+#endif
textdomain(PACKAGE);
setlocale(LC_ALL, "");
#endif