提交 b32b7c74 编写于 作者: Z zyyang

[TS-1105]<hotfix>(other): fix core dump when setLocale on windows

上级 df9e82d2
......@@ -397,6 +397,10 @@ static int taos_options_imp(TSDB_OPTION option, const char *pStr) {
cfg->cfgStatus = TAOS_CFG_CSTATUS_OPTION;
} else { // set the user specified locale failed, use default LC_CTYPE as current locale
locale = setlocale(LC_CTYPE, tsLocale);
if (locale == NULL) {
tscError("failed to set locale:%s failed, neither default LC_CTYPE: %s", pStr, tsLocale);
return -1;
}
tscInfo("failed to set locale:%s, current locale:%s", pStr, tsLocale);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册