Home GnuPG

New public function gpgrt_access.

Description

New public function gpgrt_access.

* src/gpg-error.h.in (gpgrt_access): New.
* src/gpg-error.vers. src/gpg-error.def.in: Add new function.
* src/sysutils.c (any8bitchar): New.
(_gpgrt_access): New.
* src/visibility.c (gpgrt_access): New.
* src/spawn-w32.c (_gpgrt_spawn_process_detached): Use it.
* src/argparse.c (try_versioned_conffile): Use it.
* tests/t-stringutils.c (check_access): New simple test.

This is basically a wrapper to allow handling of utf8 encoded file
names on Windows. This also fixes the case for versioned config files
in directories with non-ascii characters.

The new test needs to be run manually on Windows using a directory
with Unicode characters.

Details

Provenance
wernerAuthored on Oct 19 2020, 3:21 PM
Parents
rEdbedf190969d: w32: Support utf8 also for getcwd.
Branches
Unknown
Tags
Unknown
Tasks
T5098: Gpg4win problems for Windows Users with some non-ASCII account names