Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Wrong colour in copied Chinese text #291

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in mintty do
$ printf "\e[44m\e[31m中文\e[0m\n"
2. use mouse to select "中文" output by printf, in order to copy it to 
clipboard
3. open wordpad (or word 2010), paste

What is the expected output? What do you see instead?
=== Expected ===
中文 in mintty is fg=red, bg=blue
中文 in wordpad/word2010 is fg=red, bg=blue

=== Actual ===
中文 in mintty is fg=red, bg=blue
中(the 1st char) in wordpad/word2010 is fg=red, bg=blue. 文 (the 2nd char) in 
wordpad/word2010 is fg=default(black), bg=default(white)

What versions of mintty, Cygwin/MSYS, and Windows are you using?
mintty 1.0.1, installed from cygwin setup
Windows 7 x64

Please provide any additional information below.

Original issue reported on code.google.com by xue...@gmail.com on 8 Sep 2011 at 5:04

GoogleCodeExporter commented 8 years ago
No such problem here at first, but I am able to reproduce it by switching the 
system locale on the Administrative tab of the Region&Language control panel to 
Simplified Chinese and hence the ANSI codepage to 936/GBK. Thanks for the 
report.

Original comment by andy.koppe on 10 Sep 2011 at 5:33

GoogleCodeExporter commented 8 years ago
Fixed in r1229 on 1.0 branch.

Original comment by andy.koppe on 10 Sep 2011 at 9:00

GoogleCodeExporter commented 8 years ago

Original comment by andy.koppe on 19 Nov 2011 at 8:06