提交 fed3b36b 编写于 作者: wafwerar's avatar wafwerar

shell: fix shell chinese error

上级 c234adbb
......@@ -416,6 +416,9 @@ char taosGetConsoleChar() {
bufIndex = 0;
}
if (mbStrLen == 0){
if (buf[bufIndex] == '\r') {
bufIndex++;
}
mbStrLen = WideCharToMultiByte(CP_UTF8, 0, &buf[bufIndex], 1, mbStr, sizeof(mbStr), NULL, NULL);
mbStrIndex = 0;
bufIndex++;
......@@ -485,7 +488,6 @@ int32_t shellReadCommand(char *command) {
shellBackspaceChar(&cmd);
break;
case '\n':
break;
case '\r':
#ifdef WINDOWS
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册