[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gpg4win-users-en
Subject:    Re: [Gpg4win-users-en] --export incompatible with --import
From:       Ingo =?ISO-8859-1?Q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2024-04-03 8:05:25
Message-ID: 4560694.LvFx2qVVIh () daneel
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Dienstag, 2. April 2024 12:49:57 CEST Chris Jacobs wrote:
> Using Gpg4win-4.3.1 on command line Windows 11
> 
> PS C:\Users\chris> gpg -a --export test > test
[...]
> PS C:\Users\chris> gpg --import test
> gpg: [don't know]: partial length invalid for packet type 63
> gpg: read_block: read error: Ongeldig pakket
> gpg: import from 'test' failed: Ongeldige sleutelring
> gpg: Total number processed: 0
> PS C:\Users\chris>
> 
> Looking for the cause I found that gpg --export creates an utf-16 LE
> file and gpg --import expects ascii or utf-8 without bom but not utf-16 LE

I suspect that this is a "feature" of the output redirection in PowerShell. 
Use the --output option with --export to avoid problems caused by output 
redirection.

For Kleopatra we have recently added support for different UTF encodings when 
importing certificates.

Regards,
Ingo

["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
Gpg4win-users-en mailing list
Gpg4win-users-en@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-users-en

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic