remove clocale test

clocale is part of C++11.

In practical terms, gcc's libstdc++ comes with its own locale defines
when the libc does not have them.

Also reworked to be dependent on !ANDROID.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-09-29 14:51:17 -07:00
parent 65d257675f
commit 980e32f69c
2 changed files with 1 additions and 5 deletions

View File

@@ -111,7 +111,7 @@
#include <climits>
#ifdef HAVE_CLOCALE
#ifndef ANDROID
#include <clocale>
#endif
@@ -358,11 +358,9 @@ MainConfigured(const struct options &options, const ConfigData &raw_config)
#endif
#ifndef ANDROID
#ifdef HAVE_CLOCALE
/* initialize locale */
std::setlocale(LC_CTYPE,"");
std::setlocale(LC_COLLATE, "");
#endif
#endif
const ScopeIcuInit icu_init;