Commit Graph
3 Commits
Author SHA1 Message Date
emirplus 8836668ef4 fix(tools): preserve lf line endings on stderr in stubgen 2026-10-19 18:52:56 +03:00
thuanquangandClaude Opus 5.5 10fbc5b835 test(tools): simulate cp1252 and write LF fixtures on Python 3.9
On Python 3.9, Popen passes encoding=None, not "locale", to
TextIOWrapper, so simulated_cp1252 changed nothing and the encoding
regressions could not catch a missing encoding="utf-8". The stdout
newline test used Path.write_text(newline=...), which needs 3.10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 09:08:20 +07:00
GalaxyGamingFRandClaude Fable 5.1 f6d5404f45 fix(stubgen): write LF to stdout on Windows
When --out was not given, stubgen wrote the generated code and debt lines to
sys.stdout, which translates LF to CRLF on Windows, so redirecting stdout
produced CRLF files. stdout is now reconfigured to utf-8 with LF newlines,
matching the --out path. A subprocess test checks the bytes on stdout.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V9UU71SP1UKGR51Sowbgmq
2026-10-13 12:06:59 +02:00