Skip to content

Conversation

pmiossec
Copy link
Member

@pmiossec pmiossec commented Nov 22, 2023

because "By default, windows console does not process wide characters."

See https://stackoverflow.com/a/15450250/717372
& https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode?view=msvc-170&redirectedfrom=MSDN

Fixes #11379

Test methodology

  • Manual (and it's a pain!)
    • Run ./GitExtSshAskPass.exe from git bash (the others consoles don't display outputs or display it wrong!!)
    • or run .\GitExtSshAskPass.exe > output.txt and check file content

Test environment(s)

  • GIT
  • Windows

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

Copy link
Member

@gerhardol gerhardol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
Have not run

@pmiossec pmiossec force-pushed the fix_unicode_sshaskpass branch from 98e6ba6 to 1c63294 Compare November 23, 2023 10:08
@pmiossec pmiossec marked this pull request as ready for review November 23, 2023 10:09
@RussKie
Copy link
Member

RussKie commented Nov 24, 2023

Merging as confirmed to work in #11379 (comment).

Thank you @pmiossec!

@RussKie RussKie merged commit 03f4899 into gitextensions:release/4.0 Nov 24, 2023
@RussKie RussKie added this to the 4.2.1 milestone Nov 24, 2023
@pmiossec pmiossec deleted the fix_unicode_sshaskpass branch November 24, 2023 08:05
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.

Bug in git cli command line wrapper: SSH keys can't be unlocked any more
3 participants