{"thread":{"id":"55052","subject":"RE: Git Commit Signature Encoding","startedAt":"2021-01-26T14:36:07Z","lastAt":"2021-02-12T10:13:37Z","messageCount":6,"participants":["Rene Schumacher","Philippe Blain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"415285","messageId":"AM7PR83MB04349E882710B0EC0E186A09EEBC9@AM7PR83MB0434.EURPRD83.prod.outlook.com","threadId":"55052","inReplyTo":"AM7PR83MB0434B67B0F15E4433347D555EEBC9@AM7PR83MB0434.EURPRD83.prod.outlook.com","subject":"RE: Git Commit Signature Encoding","fromName":"Rene Schumacher","fromEmail":"rene.schumacher@microsoft.com","sentAt":"2021-01-26T14:30:25Z","receivedAt":"2021-01-26T14:36:07Z","isPatch":false,"sender":{"key":"rene.schumacher@microsoft.com","avatar":"https://gravatar.com/avatar/4c6d878f45bb194354112319e821320438653a023f13e22fa3d9e40618e0e605?d=mp&s=160"},"body":"Hi all,\n\nI'm trying to fix an encoding (?) issue when viewing gpg signatures for commits in PowerShell Core on Windows. Apparently, git changes the output from gpg depending on the command used. Here's what I see:\n\ngit show --show-signature\nThis command shows strange line endings and is unable to properly display the é in my name:\n\ncommit d7a43da0bd3bc7e31dd46afb8ccd78735ba43a36 (HEAD -> master)\ngpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time^M\ngpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\ngpg: Good signature from \"Ren<82> Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\ngpg:                 aka \"Ren<82> Schumacher <reneschu@microsoft.com>\" [ultimate]^M\nAuthor: René Schumacher <reneschu@microsoft.com>\nDate:   Tue Jan 26 15:28:26 2021 +0100\n\n    Commit with signature\n\ndiff --git a/file1.txt b/file1.txt\nnew file mode 100644\nindex 0000000..a7f8d9e\n--- /dev/null\n+++ b/file1.txt\n@@ -0,0 +1 @@\n+bla\n\n\ngit verify-commit\nThis command does not show the line endings but still fails to properly show the é:\n\ngpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time\ngpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\ngpg: Good signature from \"Ren82 Schumacher <rene.schumacher@microsoft.com>\" [ultimate]\ngpg:                 aka \"Ren82 Schumacher <reneschu@microsoft.com>\" [ultimate]\n\n\ngit verify-commit --raw\nThis command does properly show the é in my name so I guess that gpg output is correct and there's something happening while git parses the gpg output:\n\n[GNUPG:] NEWSIG\n[GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0\n[GNUPG:] SIG_ID jBtyyA8QIDL0tD5fneVqJo7oU/8 2021-01-26 1611671306\n[GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0\n[GNUPG:] GOODSIG 7802B995CDB4A2EF René Schumacher <rene.schumacher@microsoft.com>\n[GNUPG:] VALIDSIG 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 2021-01-26 1611671306 0 4 0 1 8 00 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\n[GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0\n[GNUPG:] TRUST_ULTIMATE 0 pgp\n[GNUPG:] VERIFICATION_COMPLIANCE_MODE 23\n\n\nI already set the environment variable LC_ALL to C.UTF-8, which fixed the commit message output (see first screenshot) but unfortunately not the signature output. Any idea what might be causing this and how to fix it (if possible)?\n\n\nThanks!\n\nRené Schumacher\nSr. Customer Engineer\nTel: +49 89 3176 - 4908 | Mobil: +49 151 5895 5728 | mailto:rene.schumacher@microsoft.com\nMicrosoft Deutschland GmbH - Niederlassung Köln\nHolzmarkt 2a, 50676 Köln\n\nMicrosoft Deutschland GmbH | Walter-Gropius-Str. 5 | 80807 München\nGeschäftsführer: Sabine Bendiek (Vorsitzender), Thorsten Herrmann, Benjamin O. Orndorff, Keith Dolliver\nAmtsgericht München, HRB 70438\n\n"},{"id":"415347","messageId":"328de960-ac67-e313-ecc3-b5b505e42bea@gmail.com","threadId":"55052","inReplyTo":"AM7PR83MB04349E882710B0EC0E186A09EEBC9@AM7PR83MB0434.EURPRD83.prod.outlook.com","subject":"Re: Git Commit Signature Encoding","fromName":"Philippe Blain","fromEmail":"levraiphilippeblain@gmail.com","sentAt":"2021-01-26T19:11:53Z","receivedAt":"2021-01-26T22:19:54Z","isPatch":false,"sender":{"key":"levraiphilippeblain@gmail.com","avatar":"https://avatars.githubusercontent.com/u/44212482?v=4"},"body":"Hi René,\n\nLe 2021-01-26 à 09:30, Rene Schumacher a écrit :\n> Hi all,\n> \n> I'm trying to fix an encoding (?) issue when viewing gpg signatures for commits in PowerShell Core on Windows. Apparently, git changes the output from gpg depending on the command used. Here's what I see:\n> \n> git show --show-signature\n> This command shows strange line endings and is unable to properly display the é in my name:\n> \n> commit d7a43da0bd3bc7e31dd46afb8ccd78735ba43a36 (HEAD -> master)\n> gpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time^M\n> gpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\n> gpg: Good signature from \"Ren<82> Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\n> gpg:                 aka \"Ren<82> Schumacher <reneschu@microsoft.com>\" [ultimate]^M\n> Author: René Schumacher <reneschu@microsoft.com>\n> Date:   Tue Jan 26 15:28:26 2021 +0100\n> \n>      Commit with signature\n> \n> diff --git a/file1.txt b/file1.txt\n> new file mode 100644\n> index 0000000..a7f8d9e\n> --- /dev/null\n> +++ b/file1.txt\n> @@ -0,0 +1 @@\n> +bla\n> \n> \n> git verify-commit\n> This command does not show the line endings but still fails to properly show the é:\n> \n> gpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time\n> gpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\n> gpg: Good signature from \"Ren82 Schumacher <rene.schumacher@microsoft.com>\" [ultimate]\n> gpg:                 aka \"Ren82 Schumacher <reneschu@microsoft.com>\" [ultimate]\n> \n> \n> git verify-commit --raw\n> This command does properly show the é in my name so I guess that gpg output is correct and there's something happening while git parses the gpg output:\n> \n> [GNUPG:] NEWSIG\n> [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0\n> [GNUPG:] SIG_ID jBtyyA8QIDL0tD5fneVqJo7oU/8 2021-01-26 1611671306\n> [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0\n> [GNUPG:] GOODSIG 7802B995CDB4A2EF René Schumacher <rene.schumacher@microsoft.com>\n> [GNUPG:] VALIDSIG 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 2021-01-26 1611671306 0 4 0 1 8 00 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\n> [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0\n> [GNUPG:] TRUST_ULTIMATE 0 pgp\n> [GNUPG:] VERIFICATION_COMPLIANCE_MODE 23\n> \n> \n> I already set the environment variable LC_ALL to C.UTF-8, which fixed the commit message output (see first screenshot) but unfortunately not the signature output. Any idea what might be causing this and how to fix it (if possible)?\n> \n\nWhat Git and GPG versions are you running ? And what Powershell version\n(I don't think that matters but still, a complete environment description\nusually goes a long way).\n\nCan you come up with a reproducible example ? (Complete steps starting\nwith 'git init' and 'gpg --gen-key')\n\nCheers,\n\nPhilippe.\n"},{"id":"415353","messageId":"AM7PR83MB0434CE5BAC56BA8FDC3E6F80EEBC9@AM7PR83MB0434.EURPRD83.prod.outlook.com","threadId":"55052","inReplyTo":"AM7PR83MB04349E882710B0EC0E186A09EEBC9@AM7PR83MB0434.EURPRD83.prod.outlook.com","subject":"RE: Git Commit Signature Encoding","fromName":"Rene Schumacher","fromEmail":"rene.schumacher@microsoft.com","sentAt":"2021-01-26T17:03:57Z","receivedAt":"2021-01-26T22:19:56Z","isPatch":false,"sender":{"key":"rene.schumacher@microsoft.com","avatar":"https://gravatar.com/avatar/4c6d878f45bb194354112319e821320438653a023f13e22fa3d9e40618e0e605?d=mp&s=160"},"body":"Hi again,\n\nafter a bit more testing and research it seems that the issue is actually caused by PowerShell's OutputEncoding, which does not default to UTF-8 (why, oh why). :(\nSetting the OutputEncoding to UTF-8 fixes the problem with displaying umlauts and the é. I still don't have a clue why the git show command adds those carriage return characters (^M), though. I'll dig deeper.\n\nRené\n\n-----Original Message-----\nFrom: Rene Schumacher \nSent: Dienstag, 26. Januar 2021 15:30\nTo: git@vger.kernel.org\nSubject: RE: Git Commit Signature Encoding\n\nHi all,\n\nI'm trying to fix an encoding (?) issue when viewing gpg signatures for commits in PowerShell Core on Windows. Apparently, git changes the output from gpg depending on the command used. Here's what I see:\n\ngit show --show-signature\nThis command shows strange line endings and is unable to properly display the é in my name:\n\ncommit d7a43da0bd3bc7e31dd46afb8ccd78735ba43a36 (HEAD -> master)\ngpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time^M\ngpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\ngpg: Good signature from \"Ren<82> Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\ngpg:                 aka \"Ren<82> Schumacher <reneschu@microsoft.com>\" [ultimate]^M\nAuthor: René Schumacher <reneschu@microsoft.com>\nDate:   Tue Jan 26 15:28:26 2021 +0100\n\n    Commit with signature\n\ndiff --git a/file1.txt b/file1.txt\nnew file mode 100644\nindex 0000000..a7f8d9e\n--- /dev/null\n+++ b/file1.txt\n@@ -0,0 +1 @@\n+bla\n\n\ngit verify-commit\nThis command does not show the line endings but still fails to properly show the é:\n\ngpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time\ngpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\ngpg: Good signature from \"Ren82 Schumacher <rene.schumacher@microsoft.com>\" [ultimate]\ngpg:                 aka \"Ren82 Schumacher <reneschu@microsoft.com>\" [ultimate]\n\n\ngit verify-commit --raw\nThis command does properly show the é in my name so I guess that gpg output is correct and there's something happening while git parses the gpg output:\n\n[GNUPG:] NEWSIG\n[GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0 [GNUPG:] SIG_ID jBtyyA8QIDL0tD5fneVqJo7oU/8 2021-01-26 1611671306 [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0 [GNUPG:] GOODSIG 7802B995CDB4A2EF René Schumacher <rene.schumacher@microsoft.com> [GNUPG:] VALIDSIG 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 2021-01-26 1611671306 0 4 0 1 8 00 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\n[GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0 [GNUPG:] TRUST_ULTIMATE 0 pgp [GNUPG:] VERIFICATION_COMPLIANCE_MODE 23\n\n\nI already set the environment variable LC_ALL to C.UTF-8, which fixed the commit message output (see first screenshot) but unfortunately not the signature output. Any idea what might be causing this and how to fix it (if possible)?\n\n\nThanks!\n\nRené Schumacher\nSr. Customer Engineer\nTel: +49 89 3176 - 4908 | Mobil: +49 151 5895 5728 | mailto:rene.schumacher@microsoft.com\nMicrosoft Deutschland GmbH - Niederlassung Köln Holzmarkt 2a, 50676 Köln\n\nMicrosoft Deutschland GmbH | Walter-Gropius-Str. 5 | 80807 München\nGeschäftsführer: Sabine Bendiek (Vorsitzender), Thorsten Herrmann, Benjamin O. Orndorff, Keith Dolliver Amtsgericht München, HRB 70438\n\n"},{"id":"415409","messageId":"AM7PR83MB04346479474921F3DC0688CFEEBB9@AM7PR83MB0434.EURPRD83.prod.outlook.com","threadId":"55052","inReplyTo":"328de960-ac67-e313-ecc3-b5b505e42bea@gmail.com","subject":"RE: Git Commit Signature Encoding","fromName":"Rene Schumacher","fromEmail":"rene.schumacher@microsoft.com","sentAt":"2021-01-27T09:41:17Z","receivedAt":"2021-01-27T09:45:06Z","isPatch":false,"sender":{"key":"rene.schumacher@microsoft.com","avatar":"https://gravatar.com/avatar/4c6d878f45bb194354112319e821320438653a023f13e22fa3d9e40618e0e605?d=mp&s=160"},"body":"Hi Philippe,\n\nthanks for getting back to me so quickly! And sorry for not providing all the details right away.\n\nI'm using Git 2.30.0.windows.1 (I believe that's the latest), gpg 2.2.27 (installed via gpg4win 3.1.15), and PowerShell 7.1.1. You might have seen my second email to the list in which I described that setting the OutputEncoding in PowerShell to UTF-8 fixed at least the display of the é (and probably all other umlauts and special printable characters). The signature output from git show --show-signatur is still printing the ^M carriage return character at the end of each line:\n\ncommit 69022a47744fcb3801572ac5d14295bcab274295 (HEAD -> master)\ngpg: Signature made 26.01.2021 17:55:36 W. Europe Standard Time^M\ngpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\ngpg: Good signature from \"René Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\ngpg:                 aka \"René Schumacher <reneschu@microsoft.com>\" [ultimate]^M\nAuthor: René Schumacher <reneschu@microsoft.com>\nDate:   Tue Jan 26 17:55:36 2021 +0100\n\n    another commit with signature\n\ndiff --git a/file1.txt b/file1.txt\nindex a7f8d9e..6ddadea 100644\n--- a/file1.txt\n+++ b/file1.txt\n@@ -1 +1,2 @@\n bla\n+blub\n\nSince git verify-commit does not have those carriage return characters, I'm still wondering where they might come from.\n\nCheers,\nRené\n\n-----Original Message-----\nFrom: Philippe Blain <levraiphilippeblain@gmail.com> \nSent: Dienstag, 26. Januar 2021 20:12\nTo: Rene Schumacher <Rene.Schumacher@microsoft.com>; git@vger.kernel.org\nSubject: Re: Git Commit Signature Encoding\n\nHi René,\n\nLe 2021-01-26 à 09:30, Rene Schumacher a écrit :\n> Hi all,\n> \n> I'm trying to fix an encoding (?) issue when viewing gpg signatures for commits in PowerShell Core on Windows. Apparently, git changes the output from gpg depending on the command used. Here's what I see:\n> \n> git show --show-signature\n> This command shows strange line endings and is unable to properly display the é in my name:\n> \n> commit d7a43da0bd3bc7e31dd46afb8ccd78735ba43a36 (HEAD -> master)\n> gpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time^M\n> gpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\n> gpg: Good signature from \"Ren<82> Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\n> gpg:                 aka \"Ren<82> Schumacher <reneschu@microsoft.com>\" [ultimate]^M\n> Author: René Schumacher <reneschu@microsoft.com>\n> Date:   Tue Jan 26 15:28:26 2021 +0100\n> \n>      Commit with signature\n> \n> diff --git a/file1.txt b/file1.txt\n> new file mode 100644\n> index 0000000..a7f8d9e\n> --- /dev/null\n> +++ b/file1.txt\n> @@ -0,0 +1 @@\n> +bla\n> \n> \n> git verify-commit\n> This command does not show the line endings but still fails to properly show the é:\n> \n> gpg: Signature made 26.01.2021 15:28:26 W. Europe Standard Time\n> gpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\n> gpg: Good signature from \"Ren82 Schumacher <rene.schumacher@microsoft.com>\" [ultimate]\n> gpg:                 aka \"Ren82 Schumacher <reneschu@microsoft.com>\" [ultimate]\n> \n> \n> git verify-commit --raw\n> This command does properly show the é in my name so I guess that gpg output is correct and there's something happening while git parses the gpg output:\n> \n> [GNUPG:] NEWSIG\n> [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0 \n> [GNUPG:] SIG_ID jBtyyA8QIDL0tD5fneVqJo7oU/8 2021-01-26 1611671306 \n> [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0 \n> [GNUPG:] GOODSIG 7802B995CDB4A2EF René Schumacher \n> <rene.schumacher@microsoft.com> [GNUPG:] VALIDSIG \n> 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 2021-01-26 1611671306 0 4 0 1 \n> 8 00 3848D5B2A3D45419D7F564F97802B995CDB4A2EF\n> [GNUPG:] KEY_CONSIDERED 3848D5B2A3D45419D7F564F97802B995CDB4A2EF 0 \n> [GNUPG:] TRUST_ULTIMATE 0 pgp [GNUPG:] VERIFICATION_COMPLIANCE_MODE 23\n> \n> \n> I already set the environment variable LC_ALL to C.UTF-8, which fixed the commit message output (see first screenshot) but unfortunately not the signature output. Any idea what might be causing this and how to fix it (if possible)?\n> \n\nWhat Git and GPG versions are you running ? And what Powershell version (I don't think that matters but still, a complete environment description usually goes a long way).\n\nCan you come up with a reproducible example ? (Complete steps starting with 'git init' and 'gpg --gen-key')\n\nCheers,\n\nPhilippe.\n"},{"id":"416469","messageId":"962853bc-9e60-968f-c64d-35757f72e8d1@gmail.com","threadId":"55052","inReplyTo":"AM7PR83MB04346479474921F3DC0688CFEEBB9@AM7PR83MB0434.EURPRD83.prod.outlook.com","subject":"Re: Git Commit Signature Encoding","fromName":"Philippe Blain","fromEmail":"levraiphilippeblain@gmail.com","sentAt":"2021-02-09T03:12:56Z","receivedAt":"2021-02-09T03:17:18Z","isPatch":false,"sender":{"key":"levraiphilippeblain@gmail.com","avatar":"https://avatars.githubusercontent.com/u/44212482?v=4"},"body":"Hi René,\n\nLe 2021-01-27 à 04:41, Rene Schumacher a écrit :\n> Hi Philippe,\n> \n> thanks for getting back to me so quickly! And sorry for not providing all the details right away.\n> \n> I'm using Git 2.30.0.windows.1 (I believe that's the latest), gpg 2.2.27 (installed via gpg4win 3.1.15), and PowerShell 7.1.1. You might have seen my second email to the list in which I described that setting the OutputEncoding in PowerShell to UTF-8 fixed at least the display of the é (and probably all other umlauts and special printable characters). The signature output from git show --show-signatur is still printing the ^M carriage return character at the end of each line:\n> \n> commit 69022a47744fcb3801572ac5d14295bcab274295 (HEAD -> master)\n> gpg: Signature made 26.01.2021 17:55:36 W. Europe Standard Time^M\n> gpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\n> gpg: Good signature from \"René Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\n> gpg:                 aka \"René Schumacher <reneschu@microsoft.com>\" [ultimate]^M\n> Author: René Schumacher <reneschu@microsoft.com>\n> Date:   Tue Jan 26 17:55:36 2021 +0100\n> \n>      another commit with signature\n> \n> diff --git a/file1.txt b/file1.txt\n> index a7f8d9e..6ddadea 100644\n> --- a/file1.txt\n> +++ b/file1.txt\n> @@ -1 +1,2 @@\n>   bla\n> +blub\n> \n> Since git verify-commit does not have those carriage return characters, I'm still wondering where they might come from.\n> \n> Cheers,\n> René\n\n\nI've tried to replicate with 2.30.0.windows.2 and gpg 2.2.27 (that comes with Git-for-Windows), and could not, neither in Git Bash, Cmd, Windows Powershell or Powershell Core 7.1.1.\n\nMaybe if you can provide a complete reproducer with all needed steps (git init, gpg --gen-key, etc)\nyou would get more help in the Git-for-Windows issue tracker:\nhttps://github.com/git-for-windows/git/issues\n\nCheers,\nPhilippe.\n\n"},{"id":"416784","messageId":"AM7PR83MB043401AAFD7377B99CA1BF97EE8B9@AM7PR83MB0434.EURPRD83.prod.outlook.com","threadId":"55052","inReplyTo":"962853bc-9e60-968f-c64d-35757f72e8d1@gmail.com","subject":"RE: Git Commit Signature Encoding","fromName":"Rene Schumacher","fromEmail":"rene.schumacher@microsoft.com","sentAt":"2021-02-12T10:12:28Z","receivedAt":"2021-02-12T10:13:37Z","isPatch":false,"sender":{"key":"rene.schumacher@microsoft.com","avatar":"https://gravatar.com/avatar/4c6d878f45bb194354112319e821320438653a023f13e22fa3d9e40618e0e605?d=mp&s=160"},"body":"Hi Philippe,\n\nthank you for the feedback. Perhaps the reason really is the gpg4win installation. I'll put together all steps I followed to set up my environment and create an issue on GitHub. Thanks for pointing me to the correct repo!\n\nCheers,\nRené\n\n-----Original Message-----\nFrom: Philippe Blain <levraiphilippeblain@gmail.com> \nSent: Dienstag, 9. Februar 2021 04:13\nTo: Rene Schumacher <Rene.Schumacher@microsoft.com>; git@vger.kernel.org\nSubject: Re: Git Commit Signature Encoding\n\nHi René,\n\nLe 2021-01-27 à 04:41, Rene Schumacher a écrit :\n> Hi Philippe,\n> \n> thanks for getting back to me so quickly! And sorry for not providing all the details right away.\n> \n> I'm using Git 2.30.0.windows.1 (I believe that's the latest), gpg 2.2.27 (installed via gpg4win 3.1.15), and PowerShell 7.1.1. You might have seen my second email to the list in which I described that setting the OutputEncoding in PowerShell to UTF-8 fixed at least the display of the é (and probably all other umlauts and special printable characters). The signature output from git show --show-signatur is still printing the ^M carriage return character at the end of each line:\n> \n> commit 69022a47744fcb3801572ac5d14295bcab274295 (HEAD -> master)\n> gpg: Signature made 26.01.2021 17:55:36 W. Europe Standard Time^M\n> gpg:                using RSA key 3848D5B2A3D45419D7F564F97802B995CDB4A2EF^M\n> gpg: Good signature from \"René Schumacher <rene.schumacher@microsoft.com>\" [ultimate]^M\n> gpg:                 aka \"René Schumacher <reneschu@microsoft.com>\" [ultimate]^M\n> Author: René Schumacher <reneschu@microsoft.com>\n> Date:   Tue Jan 26 17:55:36 2021 +0100\n> \n>      another commit with signature\n> \n> diff --git a/file1.txt b/file1.txt\n> index a7f8d9e..6ddadea 100644\n> --- a/file1.txt\n> +++ b/file1.txt\n> @@ -1 +1,2 @@\n>   bla\n> +blub\n> \n> Since git verify-commit does not have those carriage return characters, I'm still wondering where they might come from.\n> \n> Cheers,\n> René\n\n\nI've tried to replicate with 2.30.0.windows.2 and gpg 2.2.27 (that comes with Git-for-Windows), and could not, neither in Git Bash, Cmd, Windows Powershell or Powershell Core 7.1.1.\n\nMaybe if you can provide a complete reproducer with all needed steps (git init, gpg --gen-key, etc) you would get more help in the Git-for-Windows issue tracker:\nhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgit-for-windows%2Fgit%2Fissues&amp;data=04%7C01%7CRene.Schumacher%40microsoft.com%7C914d70147a1945878c8208d8cca89a3d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637484371825641164%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=9LgP1MLTk6s7ON4bXbS1rgSvxYKw3yytBP7D4P430oU%3D&amp;reserved=0\n\nCheers,\nPhilippe.\n\n"}]}