Home GnuPG

w32: Clarify the environment block encoding.

Description

w32: Clarify the environment block encoding.

* src/spawn-w32.c (_gpgrt_spawn_actions_set_envvars): It's an ASCII
string.

In future, we can extend it as UTF-8 string. When doing so, we will
detect ASCII or utf-8, and if needed, convert it to Unicode wchar
string with four-byte-zero terminated, and let the flag have
CREATE_UNICODE_ENVIRONMENT.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Fri, Sep 6, 3:39 AM
Parents
rEb79d4206f482: w32: Add GPGRT_PROCESS_ALLOW_SET_FG for gpgrt_process_spawn.
Branches
Unknown
Tags
Unknown