Skip to content

When editing a command line with CJK glyphs under DBCS codepages, the command line will be displayed incorrectly #289

Closed

Description

@be5invis

Steps of reproduction:

  1. Change codepage to a DBCS one like cp936
  2. Type echo '一二三'
  3. Move the cursor to somewhere before 一二三
  4. Type anything. You will see the 一二三 disappeared.

I think maybe it is cuased by forgetting to move some of the character infos after the cursor...

Activity

  1. lzybkr commented on Sep 23, 2015

    @lzybkr
    Contributor

    The latest sources (for which I haven't published a release for) or the version installed in Win10 both have CJK support.

    Maybe you're using 1.0.0.13?

  2. be5invis commented on Sep 23, 2015

    @be5invis
    Author

    Jason Shirk (@lzybkr) No, I'm using Windows 10's built-in PSReadline.
    The console's main font has been set to a TTF font and the codepage is 936.

  3. lzybkr commented on Oct 31, 2017

    @lzybkr
    Contributor

    I believe this is fixed in #561.

    I'll publish a pre-release version to the PowerShell Gallery as soon as they support pre-releases.

    If you'd like to try a fix before that, you can build the lastest yourself from the master branch, or
    grab a build from AppVeyor like this one.

    Note the version number is now 2.0, so be sure to copy the contents to \PSReadLine\2.0.

  4. lzybkr commented on Nov 4, 2017

    @lzybkr
    Contributor

    I'll have an official prerelease build out next week if you want to verify this is fixed, otherwise you can grab a build out of appveyor here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Resolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions