diff --git a/locale.c b/locale.c index 2906b470d5f1..24972949eb1e 100644 --- a/locale.c +++ b/locale.c @@ -2088,23 +2088,7 @@ S_find_locale_from_environment(pTHX_ const unsigned int index) STATIC const char * S_get_LC_ALL_display(pTHX) { - -# ifdef LC_ALL - - return querylocale_c(LC_ALL); - -# else - - const char * curlocales[LC_ALL_INDEX_]; - - for (unsigned i = 0; i < LC_ALL_INDEX_; i++) { - curlocales[i] = querylocale_i(i); - } - - return calculate_LC_ALL_string(curlocales); - -# endif - + return calculate_LC_ALL_string(NULL); } #endif