From 70c387b523fa115f02a7d545fb1f503e9b86f913 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Fri, 24 Oct 2014 18:05:29 +0200
Subject: [PATCH] Fix gpgtar 8 bit encoding handling on Win32
- tools/gpgtar-create.c (fillup_entry_w32, scan_directory): Convert to and from local encoding.
- tools/gpgtar.c (wchar_to_cp, cp_to_wchar): New. Generalized conversion functions. (utf8_to_wchar, wchar_to_utf8): Removed. (wchar_to_native, native_to_wchar): New.
- tools/gpgtar.h: Update accordingly.
- Gpgtar needs to handle filenames in the local 8 bit encoding on Windows as it uses the 8 bit file io functions.
GnuPG-bug-id: 1624, 1746 --- tools/gpgtar-create.c | 10 +++++----- tools/gpgtar.c | 48 ++++++++++++++++++++++++++++++++++-------------- tools/gpgtar.h | 4 ++-- 3 files changed, 41 insertions(+), 21 deletions(-)
1.9.1