summaryrefslogtreecommitdiff
path: root/src/gpgrt-int.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-08-21 21:11:21 +0200
committerWerner Koch <wk@gnupg.org>2020-08-21 21:11:21 +0200
commita68c1975bda47b0698b48761a62e95b371095e9a (patch)
treebc5220f82e0da76eaa44e3601773e04c4e470bac /src/gpgrt-int.h
parent87a6b28c0f3b6c5b38e0f8a8533df39d3f0c0f03 (diff)
downloadlibgpg-error-a68c1975bda47b0698b48761a62e95b371095e9a.tar.gz
core,w32: Add UTF-8 support to gpgrt_fopen, gpgrt_mkdir and gpgrt_chdir.
* src/protos.h: New. * src/Makefile.am (libgpg_error_la_SOURCES): Add file. * src/gpgrt-int.h: Include protos.h. * src/sysutils.c (_gpgrt_mkdir) [W32]: Make UTF-8 aware. (_gpgrt_chdir) [W32]: Ditto. * src/w32-gettext.c: Include protos.h. (utf8_to_wchar): Allow for strings. (_gpgrt_utf8_to_wchar): New. (_gpgrt_free_wchar): New. * src/estream.c (map_w32_to_errno): Add more error codes. (_gpgrt_w32_set_errno): New. (any8bitchar) [W32]: New helper. (func_file_create) [W32]: Convert file name and use _wopen. -- GnuPG-bug-id: 4083 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gpgrt-int.h')
-rw-r--r--src/gpgrt-int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h
index 913b9ba..58b156f 100644
--- a/src/gpgrt-int.h
+++ b/src/gpgrt-int.h
@@ -23,6 +23,7 @@
#include "gpg-error.h"
#include "visibility.h"
+#include "protos.h"
/*
* Internal i18n macros.