summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-25 00:25:56 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-25 00:26:25 (EST)
commitfdde7863c3c30485c7d0b85c4c2fac895dc139fa (patch)
tree9544671c1e8a73107c1fa1d82e5d7f2d1a7de3e4
parentbb181e605f02c7c65d4fe2b38da8be75c4be3db4 (diff)
downloadmarquee-fdde7863c3c30485c7d0b85c4c2fac895dc139fa.zip
marquee-fdde7863c3c30485c7d0b85c4c2fac895dc139fa.tar.gz
marquee-fdde7863c3c30485c7d0b85c4c2fac895dc139fa.tar.bz2
main(): Check HAVE_BIND_TEXTDOMAIN_CODESET macro
-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