Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chinese word repeat in bash on windows 10 rs1 14393 #813

Open
kokutoukiritsugu opened this issue Aug 4, 2016 · 9 comments
Open

chinese word repeat in bash on windows 10 rs1 14393 #813

kokutoukiritsugu opened this issue Aug 4, 2016 · 9 comments

Comments

@kokutoukiritsugu
Copy link

Versions

ConEmu build: 160724 x64
OS version: Windows 10 rs1 10.0.14393 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): bash on windows

Problem description

chinese word repeat in bash on windows.
but cmd not.
default

@Maximus5
Copy link
Owner

Maximus5 commented Aug 4, 2016

Show RealConsole and compare.

@kokutoukiritsugu
Copy link
Author

in the download progress,
is repeat.

enter the user name
is NOT repeat:
enter user name

enter the password
is repeat:
enter user password

install down
is repeat:
down

this is cmd
is NOT repeat:
down -cmd

@Maximus5
Copy link
Owner

Maximus5 commented Aug 4, 2016

RealConsole is not a "cmd".
http://conemu.github.io/en/RealConsole.html

  1. Show screenshot where both ConEmu and corresponding RealConsole are visible.
  2. Copy information (text!) from ConEmu/About/SysInfo, paste to gist and post link here.

@ysc3839
Copy link

ysc3839 commented Aug 6, 2016

I think this is because bash changes codepage to UTF-8.
Here is a screenshot for RealConsole
screenshot

@kokutoukiritsugu
Copy link
Author

kokutoukiritsugu commented Aug 7, 2016

sorry
this is RealConsole:
qq 20160807172550

chcp 65001 than ok:
qq 20160807173926

@ysc3839
Copy link

ysc3839 commented Aug 12, 2016

I debugged lxrun.exe and found it begins repeat after SetConsoleOutputCP.
lxss1
lxss2

Write a program that SetConsoleOutputCP(65001); can reproduce the bug.

@ysc3839
Copy link

ysc3839 commented Aug 13, 2016

This because current codepage is not DBCS but the buffer contains DBCS data.

@Gowee
Copy link

Gowee commented Jan 7, 2017

I can reproduce this problem on Windows 10 Pro Insider Preview 14986.
And it works well on Windows 10 Build 14393 (Not preview version), though.
Here is the screenshot on the former:
image


Besides, I find a similar fixed bug reported in 2012. Hope it will help. :-)

@Maximus5
Copy link
Owner

Maximus5 commented Jan 7, 2017

The current issue looks like duplicate of gh-945 and actually, looks like a bug in Microsoft console API (not confirmed or fixed yet).
It doesn't relate to gh-577 because ConEmu works properly on any Windows up to 8.1

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

No branches or pull requests

4 participants