__xlocale_C_ctype should not be const. It contains a reference count that is modified by newlocale / duplocale / freelocale.

MFC after:	1 week
This commit is contained in:
David Chisnall 2015-04-24 10:21:20 +00:00
parent 58912ae7c3
commit 710ec77e3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281927

View File

@ -209,7 +209,7 @@ struct xlocale_ctype __xlocale_global_ctype = {
256 /* __mb_sb_limit */
};
const struct xlocale_ctype __xlocale_C_ctype = {
struct xlocale_ctype __xlocale_C_ctype = {
{{0}, "C"},
(_RuneLocale*)&_DefaultRuneLocale,
_none_mbrtowc,