git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] git-gui--askpass: coerce answers to UTF-8 on Windows

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Mar 14, 2020, 17:26 UTC
Message-ID
<20200314172600.a6nrm7h3pdzshdv2@yadavpratyush.com>
In-Reply-To
<pull.578.v2.git.1584048710895.gitgitgadget@gmail.com>
On 12/03/20 09:31PM, Johannes Schindelin via GitGitGadget wrote:
Show 22 quoted lines
> From: Luke Bonanomi <lbonanomi@gmail.com>
> 
> This addresses the issue where Git for Windows asks the user for a
> password, no credential helper is available, and then Git fails to pick
> up non-ASCII characters from the Git GUI helper.
> 
> This can be verified e.g. via
> 
> 	echo host=http://abc.com |
> 	git -c credential.helper= credential fill
> 
> and then pasting some umlauts.
> 
> The underlying reason is that Git for Windows tries to communicate using
> the UTF-8 encoding no matter what the actual current code page is. So
> let's indulge Git for Windows and do use that encoding.
> 
> This fixes https://github.com/git-for-windows/git/issues/2215
> 
> Signed-off-by: Luke Bonanomi <lbonanomi@gmail.com>
> Helped-by: Junio C Hamano <gitster@pobox.com>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merged. Thanks all.
-- 
Regards,
Pratyush Yadav
Previous: Junio C Hamano
Message 5 of 5 in “git-gui--askpass: coerce answers to UTF-8 on Windows”
  1. git-gui--askpass: coerce answers to UTF-8 on WindowsJohannes Schindelin via GitGitGadget, Mar 11, 2020
  2. Junio C HamanoMar 11, 2020
  3. git-gui--askpass: coerce answers to UTF-8 on WindowsJohannes Schindelin via GitGitGadget, Mar 12, 2020
  4. Junio C HamanoMar 13, 2020
  5. Pratyush YadavMar 14, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.