muhhiminminmin / mintty

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

Unicode problem when using windows apps in mintty #343

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start mintty with zsh
2. Type eg. ping google.com

What is the expected output? What do you see instead?
Ping output with all unicode chars in my language (Polish)

What versions of mintty, Cygwin/MSYS, and Windows are you using?
mintty 1.1.1, cygwin 1.7.15, Win7x64 SP1, zsh 4.3.17 (compiled myself)

Please provide any additional information below.
I'm using Polish version of Windows so most (if not all) cli apps are in Polish 
with all glyphs, this problem doesn't happen when using cmd or Console2 with 
zsh (you can see it in attachements). It isn't a font problem - I'm using Droid 
Sans Mono font (in both mintty & Console2).

Original issue reported on code.google.com by eustachy...@gmail.com on 19 Jun 2012 at 3:48

Attachments:

GoogleCodeExporter commented 8 years ago
Most likely you use the Windows ping; unfortunately, the way Windows tools 
choose a character set for their output is not compatible with the way it's 
done in cygwin and it would be hard to adapt.
Mintty runs UTF-8 by default.
Some Windows tools can be convinced to use UTF-8 with chcp 65001.
You could also try to use cygping instead.

Original comment by towom...@googlemail.com on 22 Jun 2012 at 2:39

GoogleCodeExporter commented 8 years ago
What towo said.

One more alternative is to set the character set on the Text page of mintty's 
options to your system's ANSI codepage, presumably CP1250. Start a new mintty 
session to make sure that the shell within picks up the setting (via the LANG 
variable).

The disadvantage of that is that you won't be able to use characters outside 
that codepage and that there'll be problems when sshing to hosts using UTF-8.

Original comment by andy.koppe on 22 Jun 2012 at 3:59