Issue 131107
Summary wcin >> buffer error
Labels new issue
Assignees
Reporter debugee
    
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"



<img width="714" alt="Image" src="" />

in file locale.cpp
codecvt<wchar_t, char, mbstate_t>::result codecvt<wchar_t, char, mbstate_t>::do_in(

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

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to