Skip to content

v0.0.59rc2: fix: handle Windows cp1252 encoding for emoji in build script (#480)

Pre-release
Pre-release

Choose a tag to compare

@Bl3f Bl3f released this 19 Mar 10:11
· 1098 commits to main since this release
1092c0a
Windows defaults to cp1252 encoding which cannot handle emoji characters
used in build.py print statements. Fix with two complementary approaches:

- Set PYTHONUTF8=1 env var in publish.yml for the Windows CI build step
- Reconfigure stdout/stderr to UTF-8 in build.py for local Windows usage

Co-authored-by: Cursor Agent <cursoragent@cursor.com>