w32: Support utf8 also for getcwd.

Authored by werner on Fri, Oct 9, 3:36 PM.

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

Committed
wernerFri, Oct 9, 3:36 PM
Parents
rE3a86bdb2aad3: doc: Fix typos in comments
Branches
Unknown
Tags
Unknown