diff options
author | NIIBE Yutaka <[email protected]> | 2024-09-06 01:39:25 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-09-06 01:39:25 +0000 |
commit | 0f7b327ccf6d2018b193d5598c4a8a338f874a59 (patch) | |
tree | c026c3fafcb291bdb67c9998b7fbb31eb0d30915 /src | |
parent | w32: Add GPGRT_PROCESS_ALLOW_SET_FG for gpgrt_process_spawn. (diff) | |
download | libgpg-error-0f7b327ccf6d2018b193d5598c4a8a338f874a59.tar.gz libgpg-error-0f7b327ccf6d2018b193d5598c4a8a338f874a59.zip |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/spawn-w32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/spawn-w32.c b/src/spawn-w32.c index e7be33c..ccd1733 100644 --- a/src/spawn-w32.c +++ b/src/spawn-w32.c @@ -526,6 +526,9 @@ _gpgrt_spawn_actions_release (gpgrt_spawn_actions_t act) xfree (act); } +/* Set the environment block for child process. + * ENV is an ASCII encoded string, terminated by two zero bytes. + */ void _gpgrt_spawn_actions_set_envvars (gpgrt_spawn_actions_t act, char *env) { |