From 687d59d947e1caaf51a6fac4df937c1119aef53f Mon Sep 17 00:00:00 2001 From: Martin Fuhrer Date: Fri, 22 Feb 2008 05:14:13 +0000 Subject: [PATCH] Call bind_textdomain_codeset() on Mac OS X to permit rendering of foreign characters (eg. Arab). --- src/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n.c b/src/i18n.c index 15531e378..2e0299ea7 100644 --- a/src/i18n.c +++ b/src/i18n.c @@ -362,7 +362,7 @@ int set_current_language(void) bindtextdomain("tuxpaint", LOCALEDIR); /* Old version of glibc does not have bind_textdomain_codeset() */ -#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >=2 || __GLIBC__ > 2 +#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >=2 || __GLIBC__ > 2 || __APPLE__ bind_textdomain_codeset("tuxpaint", "UTF-8"); #endif textdomain("tuxpaint");