Skip to content

Poco::Process::launch process environment unicode support is broken on Windows #2853

@AlexanderRevo

Description

@AlexanderRevo

When setting environment variables for processes launched via Poco::Process::launch, any UTF-8 encoded environment variables with non-ASCII names and/or values will be garbled.

Expected:
env-var-winapi

Actual:
env-var-poco

This includes system environment variables, i.e. APPDATA for users with non-ASCII account names on Windows.

According to MSDN, CREATE_UNICODE_ENVIRONMENT flag should be used when calling CreateProcessW.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions