Skip to content

Conversation

@tbolon
Copy link

@tbolon tbolon commented Jan 2, 2026

This PR is a draft to suggest an enhancement to Calamari.

Currently, the SilentProcessRunner is over-conservative regarding command output encoding and will only use Western OEM encoding (basically only ASCII chars) on windows.

It greatly limits the custom scripting engine, which will emit garbage when running any commands with output in UTF-8 characters (such as emojis in logs or feedback).

Note that I think that this limitation will only apply to Windows, since SilentProcessRunnerResult static ctor will fallback to UTF-8 because of the fail of the native call. So linux will use a recent output rendering and Windows will be stuck forever in DOS OEM encoding.

My suggestion is to add a new parameter to enable UTF-8 Encoding, which will be used only by PowerShellScriptExecutor and DotNetScriptExecutor for compatibility reasons.

Maybe a more defensive option could be to add an option to opt-out (or it) to this feature in the Custom Script step.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant