startup: keep a character split between two log reads in the live view #1564
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1571"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T14:25:31Z.
The live view opened the logs in text mode and kept the offset from tell(). A read that ended inside a UTF-8 character turned the partial bytes into a replacement character and skipped past them, so a non-ASCII path (for example
G:\café.binwritten in two pieces) showed two replacement characters. The logs are now read as bytes, the unfinished line stays as bytes, whole lines are decoded, andsys.stdoutis reconfigured for UTF-8 with replacement so redirected output on Windows does not corrupt non-ASCII paths or raiseUnicodeEncodeErroron replacement characters.New check:
tests/startup_live_view_check.pycovers:\rat the end of the first read,\nat the start of the second),It fails on
origin/main(shows two replacement characters) and passes here on Linux and Windows Server 2025.CMakeLists.txtis touched: oneadd_test(startup_live_view) next tostartup_inflate. The overlay window files and #1537 are untouched.Commands executed locally:
python3 -B tests/startup_live_view_check.py(default andLC_ALL=C);python3 -m py_compile;python3 -B tests/docs_links_check.py;python3 -B tests/bidi_controls_check.py;git diff --check; Windows Server 2025tests/startup_live_view_check.pyand CTeststartup_live_view.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T14:38:13Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
aec7d27ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.