Call bind_textdomain_codeset() on Mac OS X to permit rendering of foreign characters (eg. Arab).

This commit is contained in:
Martin Fuhrer 2008-02-22 05:14:13 +00:00
parent 299185478f
commit 687d59d947

View file

@ -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");