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

Only override OutputEncoding if single-byte #397

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

dahlbyk
Copy link
Owner

@dahlbyk dahlbyk commented Feb 3, 2017

Hack to fix #389 due to apparent bug in .NET. Changes code added in #359.

My hypothesis is that the [Console]::OutputEncoding override is only necessary if we're not already using a multi-byte encoding.

I tested this locally by adding chcp 65001 at the start of my $PROFILE. This causes the OutputEncoding override to be skipped, and posh-git still handles a UTF8 branch name as expected. Not sure what/how else to test, other than users with a variety of natural console/encoding settings.

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

Successfully merging this pull request may close these issues.

Git prompts not displayed properly
1 participant