From 04e18b61dfde85e34ddea15e4a7d49f24c47bb73 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 2 Nov 2018 20:40:24 -0400 Subject: [PATCH] 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). --- src/locale/setlocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1