mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-10 16:42:59 +03:00
fix regression in setlocale for LC_ALL with per-category setting
commit d88e5dfa8b
inadvertently changed
the argument pased to __get_locale from part (the current ;-delimited
component) to name (the full string).
This commit is contained in:
parent
79f653c6bc
commit
04e18b61df
@ -34,7 +34,7 @@ char *setlocale(int cat, const char *name)
|
||||
part[z-p] = 0;
|
||||
if (*z) p = z+1;
|
||||
}
|
||||
lm = __get_locale(i, name);
|
||||
lm = __get_locale(i, part);
|
||||
if (lm == LOC_MAP_FAILED) {
|
||||
UNLOCK(lock);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user