diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-11-02 20:40:24 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-11-02 20:40:24 -0400 |
commit | 04e18b61dfde85e34ddea15e4a7d49f24c47bb73 (patch) | |
tree | b66c1d65cc64cf4b15b106cb924e393abf1bf36a | |
parent | 79f653c6bc2881dd6855299c908a442f56cb7c2b (diff) | |
download | musl-04e18b61dfde85e34ddea15e4a7d49f24c47bb73.zip musl-04e18b61dfde85e34ddea15e4a7d49f24c47bb73.tar.gz musl-04e18b61dfde85e34ddea15e4a7d49f24c47bb73.tar.bz2 |
fix regression in setlocale for LC_ALL with per-category setting
commit d88e5dfa8b989dafff4b748bfb3cba3512c8482e inadvertently changed
the argument pased to __get_locale from part (the current ;-delimited
component) to name (the full string).
-rw-r--r-- | src/locale/setlocale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c index 637e7aa..2bc7b50 100644 --- a/src/locale/setlocale.c +++ b/src/locale/setlocale.c @@ -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; |