11:52:39,153 INFO: 交易连接成功
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
只有tdapi有这问题,mdapi没有问题
是不是我的编译环境问题?
系统: Debian
c:gcc version 7.3.0 (Debian 7.3.0-19)
11:52:39,153 INFO: 交易连接成功
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
只有tdapi有这问题,mdapi没有问题
是不是我的编译环境问题?
系统: Debian
c:gcc version 7.3.0 (Debian 7.3.0-19)
找到问题了,locale环境问题
通过sudo dpkg-reconfigure locales 安装中文locale支持就可以了
sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
en_US.UTF-8... done
zh_CN.GB2312... done
zh_CN.GB18030... done
zh_CN.GBK... done
zh_CN.UTF-8... done
Generation complete.