From 716ca530e1c4515d8683c9d5be3d56b301758b66 Mon Sep 17 00:00:00 2001 From: James <> Date: Wed, 4 Nov 2015 11:49:21 +0000 Subject: trunk-47381 --- package/libs/gettext-full/patches/120-uclibc-nolocale.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/libs/gettext-full/patches/120-uclibc-nolocale.patch (limited to 'package/libs/gettext-full/patches/120-uclibc-nolocale.patch') diff --git a/package/libs/gettext-full/patches/120-uclibc-nolocale.patch b/package/libs/gettext-full/patches/120-uclibc-nolocale.patch new file mode 100644 index 0000000..51d523f --- /dev/null +++ b/package/libs/gettext-full/patches/120-uclibc-nolocale.patch @@ -0,0 +1,11 @@ +--- a/gettext-runtime/intl/localename.c ++++ b/gettext-runtime/intl/localename.c +@@ -2779,7 +2779,7 @@ gl_locale_name_posix (int category, cons + { + /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'. + On some systems this can be done by the 'setlocale' function itself. */ +-#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL ++#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL && (!defined __UCLIBC__ || defined __UCLIBC_HAS_LOCALE__) + return setlocale (category, NULL); + #else + /* On other systems we ignore what setlocale reports and instead look at the -- cgit v1.2.3