mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
0c2af93e3a
1) _locale.h LC_*_MASK bit shifting order was partially broken from the initial commit time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the right order. The order here should match XLC_* from "xlocale_private.h" which, in turn, match LC_* publicly visible order from <locale.h> which determines how locale components are stored in the structure. LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale() and equivalent shift loop in the newlocale(), so mapped to some wrong components (excluding two mentioned above). Formally the fix is ABI breakage, but old code using those masks never works properly in any case. Only newlocale() and querylocale() are affected. 2) msgcat.c Use current locale (f.e. set by thread). It was global locale always previously. PR: 211743 |
||
---|---|---|
.. | ||
be_BY.UTF-8.msg | ||
C.msg | ||
ca_ES.ISO8859-1.msg | ||
catclose.3 | ||
catgets.3 | ||
catopen.3 | ||
de_DE.ISO8859-1.msg | ||
el_GR.ISO8859-7.msg | ||
es_ES.ISO8859-1.msg | ||
fi_FI.ISO8859-1.msg | ||
fr_FR.ISO8859-1.msg | ||
gl_ES.ISO8859-1.msg | ||
hu_HU.ISO8859-2.msg | ||
it_IT.ISO8859-15.msg | ||
ja_JP.eucJP.msg | ||
ja_JP.UTF-8.msg | ||
ko_KR.eucKR.msg | ||
ko_KR.UTF-8.msg | ||
Makefile.inc | ||
mn_MN.UTF-8.msg | ||
msgcat.c | ||
nl_NL.ISO8859-1.msg | ||
no_NO.ISO8859-1.msg | ||
pl_PL.ISO8859-2.msg | ||
pt_BR.ISO8859-1.msg | ||
ru_RU.KOI8-R.msg | ||
sk_SK.ISO8859-2.msg | ||
sv_SE.ISO8859-1.msg | ||
Symbol.map | ||
uk_UA.UTF-8.msg | ||
zh_CN.GB2312.msg | ||
zh_CN.GB18030.msg | ||
zh_CN.UTF-8.msg |