[PATCH] UTF8 Filenames under Windows

Werner Koch wk at gnupg.org
Fri May 10 14:50:35 CEST 2013

On Sun,  5 May 2013 18:17, tobias at radolfstrasse.de said:
> As GnuPG’s command line does not support UTF 16 filenames, all filenames must be encoded in UTF8.

As with all Unix tools, gpg does not interpret the filename but assumes
that it is a plain C string.  The only character which a special meaning
is the '/'.  Under Windows the drive letter and the backslash are
treated similar to the slash.

> Attached is a patch for the GnuPG 1.4 branch, that converts all paths
> from UTF8 to UTF16 and pass them to Windows Wide API.

If we want to do that we would need to change a lot more places.  The
patch is also not correct, because it has no error checking and assumes
UTF-8 encoded filenames.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list