gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work
Closed, ResolvedPublic


To test:
Create a directory with a file named "💩.txt"

Try to encrypt the folder using GpgEX / Kleopatra.

This results in an error.

We need a way to pass gpgtar utf8 filenames (or wchar filenames but this would be uglyier) and then gpgtar needs to convert this internally to wchar or use estream functions that handle UTF8/wchar accordingly. Currently the 8bit stuff is only using native 8bit which usually is not utf8 and so does not handle unicode.

weeix added a subscriber: weeix.Oct 28 2019, 3:19 AM
werner added a subscriber: werner.Aug 22 2020, 2:39 PM

Done for master and 2.2.22 - libgpg-error 1.39 (not yet released) is required for the actual fix.

So if gnupg version >= 2.2.22 Kleopatra needs to convert the passed filenames to UTF-8 and pass them with the --utf8-strings option to gpgtar. This needs to be changed in Kleo. -> Assigned to me.

What is the current encoding? OEMCP ?

werner closed this task as Resolved.

Works, I've tested with Kleopatra.