summaryrefslogtreecommitdiffstats
path: root/package/libs/gettext-full/patches/120-uclibc-nolocale.patch
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-10 17:58:23 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-10 17:58:23 +0000
commit2cf562da394d23c6a06174cabb7561394e8d4fae (patch)
tree81bdeeace5d266416f9c3b9cefad21d6ece4cbf5 /package/libs/gettext-full/patches/120-uclibc-nolocale.patch
parent8237afec8bc17f52226dfe5f898b8a296a546a99 (diff)
gettext-full: move to trunk and add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33713 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libs/gettext-full/patches/120-uclibc-nolocale.patch')
-rw-r--r--package/libs/gettext-full/patches/120-uclibc-nolocale.patch11
1 files changed, 11 insertions, 0 deletions
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 000000000..3e409eb7e
--- /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
+@@ -2780,7 +2780,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