120-uclibc-nolocale.patch 650 B

1234567891011
  1. --- a/gettext-runtime/intl/localename.c
  2. +++ b/gettext-runtime/intl/localename.c
  3. @@ -2788,7 +2788,7 @@ gl_locale_name_posix (int category, cons
  4. {
  5. /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.
  6. On some systems this can be done by the 'setlocale' function itself. */
  7. -#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
  8. +#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL && (!defined __UCLIBC__ || defined __UCLIBC_HAS_LOCALE__)
  9. return setlocale (category, NULL);
  10. #else
  11. /* On other systems we ignore what setlocale reports and instead look at the