Home GnuPG

w32: Support utf8 also for getcwd.

Description

w32: Support utf8 also for getcwd.

* src/sysutils.c (_gpgrt_getcwd) [W32]: Implement utf-8 support.
* src/w32-gettext.c (wchar_to_native): Factor some code out to ..
(wchar_to_cp): new.
(_gpgrt_wchar_to_utf8): New.
* tests/t-stringutils.c: Include windows.h.
(utf8_to_wchar): New.
(wchar_to_utf8): New.
(mygetcwd): Use wchar version for Windows.
(main): New option --pwd.

Details

Provenance
wernerAuthored on Oct 9 2020, 3:36 PM
Parents
rE3a86bdb2aad3: doc: Fix typos in comments
Branches
Unknown
Tags
Unknown