This patch unlocks the functions of gettext to work on systems without locale support. On an default OpenWrt the uClibc is compiled with only a dummy support for locale, which is unusable and makes so the gettext library completely unusable on this systems.
Signed-off-by: Alina Friedrichsen <[EMAIL PROTECTED]> Index: libs/gettext/patches/120-uclibc-nolocale.patch =================================================================== --- libs/gettext/patches/120-uclibc-nolocale.patch (Revision 0) +++ libs/gettext/patches/120-uclibc-nolocale.patch (Revision 0) @@ -0,0 +1,13 @@ +Index: gettext-0.16.1/gettext-runtime/intl/localename.c +=================================================================== +--- gettext-0.16.1.orig/gettext-runtime/intl/localename.c 2007-12-29 22:51:09.363903016 +0100 ++++ gettext-0.16.1/gettext-runtime/intl/localename.c 2008-10-26 16:57:14.048169957 +0100 +@@ -988,7 +988,7 @@ + { + /* 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 + const char *retval; Index: libs/gettext/Makefile =================================================================== --- libs/gettext/Makefile (Revision 13024) +++ libs/gettext/Makefile (Arbeitskopie) @@ -10,7 +10,7 @@ PKG_NAME:=gettext PKG_VERSION:=0.16.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:[EMAIL PROTECTED]/gettext -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
Index: libs/gettext/patches/120-uclibc-nolocale.patch =================================================================== --- libs/gettext/patches/120-uclibc-nolocale.patch (Revision 0) +++ libs/gettext/patches/120-uclibc-nolocale.patch (Revision 0) @@ -0,0 +1,13 @@ +Index: gettext-0.16.1/gettext-runtime/intl/localename.c +=================================================================== +--- gettext-0.16.1.orig/gettext-runtime/intl/localename.c 2007-12-29 22:51:09.363903016 +0100 ++++ gettext-0.16.1/gettext-runtime/intl/localename.c 2008-10-26 16:57:14.048169957 +0100 +@@ -988,7 +988,7 @@ + { + /* 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 + const char *retval; Index: libs/gettext/Makefile =================================================================== --- libs/gettext/Makefile (Revision 13024) +++ libs/gettext/Makefile (Arbeitskopie) @@ -10,7 +10,7 @@ PKG_NAME:=gettext PKG_VERSION:=0.16.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:[EMAIL PROTECTED]/gettext
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel