Open
Description
sample
debug config
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "${workspaceFolder}/build/testcpp",
"args": [],
"cwd": "${workspaceFolder}",
"initCommands": [
"settings set target.process.thread.step-avoid-regexp \"\"",
],
"console": "integratedTerminal",
"env": {
"LANG":"en_US.UTF-8"
}
}
]
}
please add "LANG":"en_US.UTF-8"

in file locale.cpp
codecvt<wchar_t, char, mbstate_t>::do_in
llvm-project/libcxx/src/locale.cpp
Line 1416 in a9843ac
have bug when trans utf-8 to wchar_t
when input 你123
do_in
trans uncompleted utf-8 bytes with first byte 0xe4
and return ok
, but correct is partial
so bug come out