Skip to content

Commit

Permalink
locale.c: Rmv obsolete code
Browse files Browse the repository at this point in the history
A "" input locale has been expanded by the time it gets here, so this is
never true; it is a relict from previous implementations.
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent 35c5d5f commit 0cfc1e7
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions locale.c
Expand Up @@ -2032,20 +2032,10 @@ S_bool_setlocale_2008_i(pTHX_
}

#endif
# ifdef USE_PL_CURLOCALES

/* We are done, except for updating our records (if the system doesn't keep
* them) and in the case of locale "", we don't actually know what the
* locale that got switched to is, as it came from the environment. So
* have to find it */

# ifdef USE_QUERYLOCALE

if (strEQ(new_locale, "")) {
new_locale = querylocale_i(index);
}

# else

* them). */
update_PL_curlocales_i(index, new_locale);

# endif
Expand Down

0 comments on commit 0cfc1e7

Please sign in to comment.