Skip to content

Windows: Unicode characters in the program name/path makes spawn fail #57

@kit-ty-kate

Description

@kit-ty-kate

According to its documentation, CreateProcess defaults to the ASCII if UNICODE is not defined.

I'm not able to find this macro defined anywhere in spawn and in any case, v_prog is passed as-is to CreateProcess which means the string is not UTF-16 encoded.

If you call spawn on Windows with ~prog:"C:\path\to\a\Unicěde.exe" the process will fail with:

Error: CreateProcess(): No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions