diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index e56fdb4b4..ae8a1f401 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -20,6 +20,9 @@ http://www.newbreedsoftware.com/tuxpaint/ * Added larger screen size support: 1024x768, 1280x1024, 1400x1050, 1600x1200 TOYAMA Shin-ichi + * Fixed to compile on old GLIBC system (such as RedHat-6.2) + TOYAMA Shin-ichi + 2004.September.28 (0.9.14) * New Features: diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 177d86c95..37959be50 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -4856,7 +4856,11 @@ void setup(int argc, char * argv[]) } bindtextdomain("tuxpaint", LOCALEDIR); + + /* Old version of glibc does not have bind_textdomain_codeset() */ +#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >=2 || __GLIBC__ > 2 bind_textdomain_codeset("tuxpaint", "UTF-8"); +#endif textdomain("tuxpaint");