Skip to content

[WSL]: Chinese input can't be deleted as expected. #16540

@foldl

Description

@foldl

Windows Terminal version

1.18.3181.0

Windows build number

10.0.22635.2921

Other Software

WSL.

Steps to reproduce

  1. Build this simple C++ program (bug.cpp) with g++ bug.cpp:

    #include <string>
    #include <iostream>
    int main(int argc, const char **argv)
    {
        std::string s;
        std::cin >> s;
        std::cout << s << std::endl;
        return 0;
    }
  2. Run it with ./a.out, input some Chinese characters, such as "时间",
    and we see that this string is eched correctly.

  3. Run it again, input "时间", then use Backspace to delete one or two characters, we can see GUI's behaviour is wrong.

    As shown in the image, I have presse Backspace several times, but "时" is always there. Then I typed in "世界"
    and 3 characters ("时世界") is displayed. Press Enter, we see that "世界" is echoed correctly.

image

Expected Behavior

Chinese input can be deleted as expected.

Actual Behavior

Some Chinese characters are displayed even through they are already deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-AttentionThe core contributors need to come back around and look at this ASAP.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions