07/07/31 16:37:52
>>616
xlocaleの_Maklocbyte<wchar_t>がバグっちょる。
template<> inline
char __CRTDECL _Maklocbyte(wchar_t _Char,
const _Locinfo::_Cvtvec& _Cvt)
{ // convert wchar_t to char using _Cvtvec
- char _Byte = '\0';
+ char _Byte[2] = {'\0'};
_Mbstinit(_Mbst1);
- _Wcrtomb(&_Byte, _Char, &_Mbst1, &_Cvt);
- return (_Byte);
+ _Wcrtomb(_Byte, _Char, &_Mbst1, &_Cvt);
+ return (_Byte[0]);
}
と直せばとりあえず、動くようにはなる。