-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
Git prompts not displayed properly #389
Comments
Interesting. Can you post your prompt function here? Execute |
Wow, I have no idea what this could be. If you scroll up/down do the blank spaces move with the text? |
font: @dahlbyk I tried another font and it works normally. However I prefer the font And, I can show you the result after changing the font size. |
I find out that the issue was introduced in 846a4ec with the help of The locale of my OS is Simplified Chinese, and I am using code page 936 (ANSI/OEM 简体中文 GBK) for my powershell. I would not like to alter my code page because there would be more display issues in powershell if I did, as a typical Chinese user. |
❤️ ❗️ The final version of #359 moved the encoding set/reset into `Invoke-Utf8ConsoleCommand. You might try fiddling in there?
Completely understood. http://stackoverflow.com/questions/22349139/utf-8-output-from-powershell suggests our current solution might not be the correct one. I wonder if @LeeHolmes could weigh in on a better approach to handling the fact that git.exe output is always UTF-8? |
I removed this line in my local version as a workaround, and it works well now. Hopefully a better approach can be found. |
@taroxd the problem we are trying to solve is handling branch names (and file paths, etc) with non-ASCII characters (e.g. |
@taroxd also, what do you get from |
Yes, it does, after I removed the line that handles encoding. But I probably won't encounter such branch names when I use git. The result of
|
Thanks, it works. |
@taroxd Have you tried to change the UI font to something not raster? |
@be5invis I have been using |
System Details
Issue Description
Git prompts are not displayed properly in my powershell. There are no such issues in some older versions of posh-git.
My powershell profile:
And the issue has nothing to do with my customizations. I tried to remove my customizions, but the issue persists.
If I do not import posh-git, the prompts will be displayed properly (without git prompts).
The text was updated successfully, but these errors were encountered: