Home GnuPG
Diffusion GnuPG 3e50236d4ecc

gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32
3e50236d4eccUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32

* common/utf8conv.c (wchar_to_utf8): Factor code out to ...
(wchar_to_cp): new.
(utf8_to_wchar): Factor code out to ...
(cp_to_wchar): new.
(wchar_to_native): New.
(native_to_wchar): New.
* tools/gpgtar-create.c (fillup_entry_w32): Use native_to_wchar.
(scan_directory): Use wchar_to_native.

Gpgtar needs to handle filenames in the local 8 bit encoding on
Windows as it uses the 8 bit file io functions.

Patch from bug 1624 modified to fit into GnuPG 2.1 by wk.

  • GnuPG-bug-id: T1624, T1746
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
aheineckeAuthored on Jan 26 2016, 9:53 AM
wernerCommitted on Jan 26 2016, 9:53 AM
Parents
rGb8bb16c6c08d: g10: Fix segfault on unsupported curve.
Branches
Unknown
Tags
Unknown