diff --git a/locale.c b/locale.c index 7a07a050bc30..e94dbf180e65 100644 --- a/locale.c +++ b/locale.c @@ -1663,29 +1663,7 @@ S_posix_setlocale_with_complications(pTHX_ const int cat, if (new_locale == NULL) { new_locale = base_posix_setlocale_(cat, NULL); assert(new_locale); - -# ifndef LC_ALL - return new_locale; - -# else - - /* There's no need to reconcile anything if all the possible categories - * - * XXX I now think the only reason for this is to convert to our internal format; but is this the place to do that. Prob. not. - * - * are the same; that means the subset known to us are the same. - * XXX warn if ignored not C? - * Otherwise. call a function that handles the reconciliation */ - if (! is_disparate_LC_ALL(new_locale)) { - return new_locale; - } - - return calculate_LC_ALL_string(NULL, INTERNAL_FORMAT, - false, /* Use temporary for result */ - caller_line); -# endif - } const char * locale_on_entry = NULL;