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

Bad unicode support (wrong glyphs on alsamixer) #545

Closed
rfgamaral opened this issue Jul 4, 2015 · 4 comments
Closed

Bad unicode support (wrong glyphs on alsamixer) #545

rfgamaral opened this issue Jul 4, 2015 · 4 comments

Comments

@rfgamaral
Copy link

They say a picture is worth a thousand words:

alsamixer_consoles

  • Top-left: Cmder (cmd.exe)
  • Bottom-left: Cmder (cmd.exe real console)
  • Top-right: Cygwin Mintty
  • Bottom-right: cmd.exe

Only Cmder, for some strange reason, does not have proper glyph support for alsamixer (not sure if it's relevant but I'm accessing my Debian Wheezy machine through SSH).

I've read the Unicode Support page from ConEmu and I still can't get this to work properly. The chcp 65001 command doesn't help. And when I run chcp on cmd.exe to check the codepage, it reports 850, same as Cmder, so it should just work.

I'm using the same font on all consoles and that is Consolas with font charset ANSI and I've also tried to change the alternative font for pseudographics, nothing works.

This happens only on the following Cmder task: cmd /k "%ConEmuDir%\..\init.bat" -new_console:d:%USERPROFILE%. After messing with init.bat contents I've found that removing %GIT_INSTALL_ROOT%\bin; from https://github.com/bliker/cmder/blob/master/vendor/init.bat#L41, "solves" the problem. Glyphs are now properly rendered for alsamixer.

But this is not a solution because it prevents me from using all the msysGit tools inside Cmder.

Thoughts on how to properly solve this?

@Maximus5
Copy link
Contributor

Maximus5 commented Jul 5, 2015

What ssh do you run in the bottom-right cmd.exe? Use taskmanager or ProcessExplorer to find exact/full path to the ssh.exe file in all cases. I believe that are different. So, to fix the problem you have to set up your %PATH% to point the directory with prop proper shh first.
But where it is? cygwin? Why not to install git package there instead of using msysgit?
Another option is to compare profiles of cygwin (where you have proper ssh?) and msysgit. And there is already newer version - git-for-windows v2.x.

@rfgamaral
Copy link
Author

Yes, they are different. Mintty and cmd.exe are both using the version from Cygwin. But Cmder is using the one from the Git for Windows package.

Why not to install git package there instead of using msysgit?

I thought they were exactly the same, just renamed ("msysGit" to "Git for Windows").

Another option is to compare profiles of cygwin (where you have proper ssh?) and msysgit.

What do you mean with profiles?

And there is already newer version - git-for-windows v2.x.

The official website states 1.9.5 as the latest stable version. I didn't know about that one until you mentioned it. I guess I can download it from here. I'll need to try this new version and see how it works.

@Maximus5
Copy link
Contributor

Maximus5 commented Jul 5, 2015

I thought they were exactly the same, just renamed ("msysGit" to "Git for Windows").

I mean cygwin has git package, but AFAIK it used cygwin core. So it is different from "msysGit".

2015-07-05_23-14-27

What do you mean with profiles?

.bashrc and, actually, dozens of other configuration files. Of course they msys and cygwin has different configs even if you use same $home.

from here.

Exactly. Not sure about its production stage, but I'm using this updated version in my work because do not like cygwin.

@rfgamaral
Copy link
Author

I started using that version too. Well, they say it's an RC4, they should be close to release a production ready version.

However, since I've installed that version, all my utilities are coming from Cygwin because I only added git.exe to the Windows PATH and not everything else (personal choice). My Cmder task is using their custom init.bat which is looking for utilities under Program Files\Git\bin but on this version they are stored at Program Files\Git\usr\bin, and since Cygwin is on Windows path, it falls back to those.

But I tested ssh.exe from this Git version and it worked in the same way as ssh.exe from Cygwin, the borders on alsamixer are now properly rendered. grep also has support for color, which it didn't on the previous version.

For now, this works for me. I'm not getting rid of Cygwin just yet for SSH purposes, I still prefer to use Mintty over Cmder/ConEmu (as you are aware from the other issue).

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

No branches or pull requests

2 participants