Posh-git: Non-ascii git branch name garbled,except in VSCode.

Created on 11 Dec 2020  路  2Comments  路  Source: dahlbyk/posh-git

System Details

  • posh-git version/path: 1.0.0 beta4 ~\Documents\PowerShell\Modules\posh-git1.0.0
  • PowerShell version: 7.1.0
  • git version 2.29.2.windows.2
  • OS: Microsoft Windows NT 10.0.18363.0

Issue Description

Non-ascii git branch name(prompt) garbled,except in VSCode.

As you can see from the picture below, it is normal in PowerShell Integrated Console, but abnormal in pwsh(is same in pwsh.exe ,powershell.exe and Windows Terminal).

It is not caused by other modules and ProFile, even in the virtual machine, this problem still exists.

Most helpful comment

Can you try the latest version from master? This might be resolved by #796, which I haven't managed to release yet.

Thank you. The problem has been solved.

All 2 comments

Can you try the latest version from master? This might be resolved by #796, which I haven't managed to release yet.

Can you try the latest version from master? This might be resolved by #796, which I haven't managed to release yet.

Thank you. The problem has been solved.

Was this page helpful?
0 / 5 - 0 ratings