diff options
author | Werner Koch <[email protected]> | 2020-08-21 19:28:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-08-21 19:28:28 +0000 |
commit | 34e7703a962809921e83770f20f3eb66599265d1 (patch) | |
tree | 2d5f0418759d91c779add74bd2e865c8bef518dc /doc/tools.texi | |
parent | common: Use gpgrt functions for mkdir and chdir. (diff) | |
download | gnupg-34e7703a962809921e83770f20f3eb66599265d1.tar.gz gnupg-34e7703a962809921e83770f20f3eb66599265d1.zip |
gpgtar,w32: Handle Unicode file names.
* tools/gpgtar.c (oUtf8Strings): New.
(opts): Add option --utf8-strings.
(parse_arguments): Set option.
* tools/gpgtar.h (opt): Add field utf8strings.
* tools/gpgtar-create.c (name_to_utf8): New.
(fillup_entry_w32): Use that.
(scan_directory): Ditto.
(scan_directory) [W32]: Convert file name to utf8.
(gpgtar_create): Convert pattern.
--
Note that this works only with file names read from a file or if the
specified files on the command line are plain ascii. When recursing
into a directory Unicode file names work again. This limitation is
due to main(int, char**) which can't get the wchar version. We could
fix that but is needs a bit more work in our init code.
GnuPG-bug-id: 4083
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc/tools.texi')
-rw-r--r-- | doc/tools.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/tools.texi b/doc/tools.texi index 7779af43d..8eb77401e 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -2093,6 +2093,12 @@ line. Modify option @option{--files-from} to use a binary nul instead of a linefeed to separate file names. +@item --utf8-strings +@opindex utf8-strings +Assume that the file names read by @option{--files-from} are UTF-8 +encoded. This option has an effect only on Windows where the active +code page is otherwise assumed. + @item --openpgp @opindex openpgp This option has no effect because OpenPGP encryption and signing is |