Skip to content

bug(test-eest): reconfigure output streams to UTF-8 on Windows consoles#3209

Open
Kumarutkarsh9470 wants to merge 1 commit into
ethereum:forks/amsterdamfrom
Kumarutkarsh9470:fix/eest-utf8-windows-console
Open

bug(test-eest): reconfigure output streams to UTF-8 on Windows consoles#3209
Kumarutkarsh9470 wants to merge 1 commit into
ethereum:forks/amsterdamfrom
Kumarutkarsh9470:fix/eest-utf8-windows-console

Conversation

@Kumarutkarsh9470

@Kumarutkarsh9470 Kumarutkarsh9470 commented Jul 22, 2026

Copy link
Copy Markdown

The eest commands print Unicode characters (box drawing in info, emoji in clean and make) via click.echo. On a Windows console using a legacy code page such as cp1252, these characters cannot be encoded and the command aborts with UnicodeEncodeError.

Reconfigure sys.stdout/sys.stderr to UTF-8 in the eest group callback, guarded so streams that do not support reconfiguration (for example captured output under tests) are left untouched. Add regression tests covering a legacy-encoded stdout.

Description

Related Issues or PRs

N/A.

Checklist

  • Ran fast static checks to avoid CI fails, see Code Standards & Verifying Changes: just static
  • PR title has the form <type>(<area>): <title>, where <type> and <area> come from an appropriate C-<type>, respectively A-<area>, label. The title should match the target squash commit message.

Cute Animal Picture

cat

The `eest` commands print Unicode characters (box drawing in `info`,
emoji in `clean` and `make`) via `click.echo`. On a Windows console
using a legacy code page such as `cp1252`, these characters cannot be
encoded and the command aborts with `UnicodeEncodeError`.

Reconfigure `sys.stdout`/`sys.stderr` to UTF-8 in the `eest` group
callback, guarded so streams that do not support reconfiguration (for
example captured output under tests) are left untouched. Add regression
tests covering a legacy-encoded stdout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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