Skip to content

Commit

Permalink
Revert "XXX posix with complications, likely drop after testing"
Browse files Browse the repository at this point in the history
This reverts commit efd75423fcddff5b9972d6efb08968c73107dc2a.
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent b65a470 commit 6fb8372
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions locale.c
Expand Up @@ -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;
Expand Down

0 comments on commit 6fb8372

Please sign in to comment.