--- gtypist.c.orig 2018-04-10 06:46:18.309409730 +0200 +++ gtypist.c 2018-04-10 06:50:24.033513437 +0200 @@ -1999,16 +1999,23 @@ /* Internationalization */ -#if defined(ENABLE_NLS) && defined(LC_ALL) +#ifdef LC_ALL + /* Fix Corner case: + Rudix (GNU util packages for OSX) + has LC_ALL and needs setlocale + but doesn't have ENABLE_NLS + */ setlocale (LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain (PACKAGE, LOCALEDIR); /* make gettext always return strings as UTF-8 => this makes programming easier because now _all_ strings (from gettext and from script file) are encoded as UTF8! */ - bind_textdomain_codeset(PACKAGE, "utf-8"); + bind_textdomain_codeset(PACKAGE, "utf-8"); textdomain (PACKAGE); #endif +#endif #ifdef MINGW locale_encoding = "UTF-8";