Conemu: Font rendering problem when using git-bash in ConEmu

Created on 7 Jan 2017  ·  6Comments  ·  Source: Maximus5/ConEmu

Versions

ConEmu build: 161206 x64
OS version: win7 x64, win10 x64
Used shell version: git-bash (git version 2.11.0.windows.1)

Problem description

  1. I have set main console font:

    ca 80 wx2cmu z iy4

  2. {cmd} works fine, but {Git bash} is broken:

    {cmd}:

    hxzf0 bh7y9vkw7a 5_t3 t

    {Git bash}:
    j6s0jkgilwc 5cn4d5 g eb

  3. I read below docs

    http://conemu.github.io/en/UnicodeSupport.html
    http://conemu.github.io/en/RealConsole.html

  4. Open real console:
    very small font, but I can see real console render wrong font too.
    image

  5. Found its default font is “新宋体”(not what I set in ConEmu)

    image

  6. Then I follow the docs try to set real console font in Settings->Features:

    this dropdown list do not contain DejaVu Sans Mono Nerd Font
    ek 1d80dolf5 42c l1xvaf

    And add font button is gray out, even if I run ConEmu by Administrator:
    o21z n2 3g tmc4j n5yvb2

  7. I also found an answer by you

    http://superuser.com/questions/390933/how-to-add-a-font-to-the-cmd-window-choices-in-windows-7-64-bit

    put that font to ConEmu directory and restart the program.
    e 7 li6rfk4ve gq 0m15

    But nothing happen, still error.

PS: the older git-bash version seems works fine, I update git-bash to newest (git version 2.11.0.windows.1) and get this error.

Most helpful comment

I had a similar issue and fixed it by defining two environment variables:

set LANG=en_US.UTF-8
set LC_ALL=en_US.UTF-8

These settings can be found by going to Settings>Startup>Environment.

All 6 comments

You said "git bash is broken". So, you chose wrong site to report the problem.
Third-party application problems
Hint: you have to convince git bash to process unicode properly (aka UTF-8).

@Maximus5
git-bash itself is working:
wpnol gyi o3ty1w2dft gi

Only wrong while using ConEmu{Git bash}:
sbsaiv hc3gim 4olzjs k

So I think the problem is the real consol font, but I can't find a proper way to set it.

In addition, I changed git-bash font settings before I did above test, maybe related to the problem

n6 r9enl f2dq c5a bkibx

PS: no matter what config I changed, ConEmu rendered wrong font

  1. Read the link I posted.
  2. The screenshot you posted is not "git bash", it's the mintty.exe. What you named "git bash" is a bootstrap for mintty.

I have read the link serveral times, thanks for you effort, but I still can't understand the key point you said.

  1. Third-party software problems

    Same with ConEmu. It’s a terminal, it just shows output of spawned console applications. Obviously, if third-party console application produces broken output, ConEmu can’t magically make this output valid.

    This time, I directly open mintty.exe under git-bash folder and test, the output is correct:

    x3 x1q6h5k ha sz xr9

    This make me feel git bash(mintty.exe) output is correct. (PS: My windows path only include D:\Git\usr\bin , so ConEmu would not call other mintty.exe)

    If this way can't prove git-bash(mintty.exe) output is correct, please tell me what is the right way. Because I think I do according to the docs, though by your saying seems I didn't do the right thing? I just can't figure out what is wrong, that is the problem. I think maybe that docs should be more detailly to describe this.

  2. Check third-party software stand-alone

    The whole section is talking about running tool or application.I am not running any tool or application in ConEmu , I am asking the font rendering problem, so skip this.

  3. Do not run your console tool in mintty

    The whole section is talking about running tool or application.I am not running any tool or application in ConEmu , I am asking the font rendering problem, so skip this.

  4. Run your shell without profile

    Do not point out how to run git-bash(mintty.exe) without profile

    > ConEmu -run git-bash -noprofile 
    > ConEmu -run mintty -noprofile   
    

    Both not work

  5. Note about DefaultTerminal

    not enable

I had a similar issue and fixed it by defining two environment variables:

set LANG=en_US.UTF-8
set LC_ALL=en_US.UTF-8

These settings can be found by going to Settings>Startup>Environment.

Was this page helpful?
0 / 5 - 0 ratings