projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79f653c
)
fix regression in setlocale for LC_ALL with per-category setting
author
Rich Felker
<dalias@aerifal.cx>
Sat, 3 Nov 2018 00:40:24 +0000
(20:40 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 3 Nov 2018 00:40:24 +0000
(20:40 -0400)
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
patch
|
blob
|
history
diff --git
a/src/locale/setlocale.c
b/src/locale/setlocale.c
index 637e7aa04bee26e7e9c91fee70851765ebdad642..2bc7b50070fc0dd21b3e24158fd4797b21b0345a 100644
(file)
--- 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;