diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-25 00:25:56 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-25 00:26:25 (EST) |
commit | fdde7863c3c30485c7d0b85c4c2fac895dc139fa (patch) | |
tree | 9544671c1e8a73107c1fa1d82e5d7f2d1a7de3e4 | |
parent | bb181e605f02c7c65d4fe2b38da8be75c4be3db4 (diff) | |
download | marquee-fdde7863c3c30485c7d0b85c4c2fac895dc139fa.zip marquee-fdde7863c3c30485c7d0b85c4c2fac895dc139fa.tar.gz marquee-fdde7863c3c30485c7d0b85c4c2fac895dc139fa.tar.bz2 |
main(): Check HAVE_BIND_TEXTDOMAIN_CODESET macro
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |