* gettext-runtime/intl/setlocale.c: Include setlocale-fixes.h instead of
setlocale-messages.h.
(setlocale_unixlike) [__ANDROID__]: Use setlocale_fixed instead of setlocale.
(setlocale_improved): On Android, use setlocale_fixed_null instead of setlocale.
# define SHLIB_EXPORTED
#endif
-#include "setlocale-messages.h"
+#include "setlocale-fixes.h"
#include "localename.h"
#if HAVE_CFLOCALECOPYPREFERREDLANGUAGES || HAVE_CFPREFERENCESCOPYAPPVALUE
static char *
setlocale_unixlike (int category, const char *locale)
{
- char *result = setlocale (category, locale);
+ char *result = setlocale_fixed (category, locale);
if (result == NULL)
switch (category)
{
return resultbuf;
}
}
+# elif defined __ANDROID__
+ return setlocale_fixed_null (LC_ALL);
# else
return setlocale (LC_ALL, NULL);
# endif