Skip to content

Commit

Permalink
locale.c: locale "" can be disparate
Browse files Browse the repository at this point in the history
Setting a locale "" means to get the value from environment variables.
These can set locale categories to different locales, and this needs to
be handled.  The logic before this commit only handled the disparate
case when the locale wasn't ""; but this was compensated for elsewhere.
A future commit will remove that compensation.
  • Loading branch information
khwilliamson committed Apr 2, 2021
1 parent bbef71d commit 57fd442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locale.c
Expand Up @@ -992,7 +992,8 @@ S_emulate_setlocale_i(pTHX_
}
}
} /* End of this being setlocale(LC_foo, "") */
else if (strchr(new_locale, ';')) {

if (strchr(new_locale, ';')) {
return setlocale_from_aggregate_LC_ALL(new_locale);
}

Expand Down

0 comments on commit 57fd442

Please sign in to comment.