diff --git a/libcxx/utils/libcxx/test/dsl.py b/libcxx/utils/libcxx/test/dsl.py --- a/libcxx/utils/libcxx/test/dsl.py +++ b/libcxx/utils/libcxx/test/dsl.py @@ -245,9 +245,14 @@ %{exec} -- this means that the command may be executed on a remote host depending on the %{exec} substitution. """ + # Bionic's locale support is simplistic: it only recognizes two locales, "C" + # (aka "POSIX") and "C.UTF-8" (aka "en_US.UTF-8"). The locale mode determines + # the MB_CUR_MAX, but there is no true locale stuff (e.g. number formatting). + # Treat Bionic as if it lacks locales. program = """ #include - #if defined(_LIBCPP_HAS_NO_LOCALIZATION) + #include + #if defined(_LIBCPP_HAS_NO_LOCALIZATION) || defined(__BIONIC__) int main(int, char**) { return 1; } #else #include