mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
364cef997c
commit
843890663b
4 changed files with 68 additions and 10 deletions
|
@ -2033,6 +2033,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue