]> granicus.if.org Git - musl/commit
fix nl_langinfo_l(CODESET, loc) reporting wrong locale's value
authorRich Felker <dalias@aerifal.cx>
Wed, 7 Mar 2018 16:22:38 +0000 (11:22 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 7 Mar 2018 16:22:38 +0000 (11:22 -0500)
commit0cf50581ec5f04feeaa77f2eb8b734a4b69ca8ed
treec772b463b775871047461b68ec808116c5887327
parent57b97b42bdecafd81c4967a10aef6eaf43d3fcb8
fix nl_langinfo_l(CODESET, loc) reporting wrong locale's value

use of MB_CUR_MAX encoded a hidden dependency on the currently active
locale for the calling thread, whereas nl_langinfo_l is supposed to
report for the locale passed as an argument.
src/locale/langinfo.c