提交 04e18b61 编写于 作者: R Rich Felker

fix regression in setlocale for LC_ALL with per-category setting

commit d88e5dfa inadvertently changed
the argument pased to __get_locale from part (the current ;-delimited
component) to name (the full string).
上级 79f653c6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册