summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-11-02 20:40:24 -0400
committerRich Felker <dalias@aerifal.cx>2018-11-02 20:40:24 -0400
commit04e18b61dfde85e34ddea15e4a7d49f24c47bb73 (patch)
treeb66c1d65cc64cf4b15b106cb924e393abf1bf36a /src/locale
parent79f653c6bc2881dd6855299c908a442f56cb7c2b (diff)
downloadmusl-04e18b61dfde85e34ddea15e4a7d49f24c47bb73.tar.gz
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).
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/setlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c
index 637e7aa0..2bc7b500 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;