Scripts: read BOM-marked record-writer listings #2659

Open
github-bot wants to merge 1 commit from github-bot/gh-2659 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 05:15 UTC · original
luckyteagirl:codex/record-writers-powershell-listing → main · +17 −5 · 2 files · 1 commits · open

The record-writer inspector reads objdump listings as plain UTF-8. A listing saved by Windows PowerShell 5.1 redirection has a UTF-16 BOM; the inspector then silently finds zero record-write sites. Recognize BOM-marked listings while preserving plain UTF-8 input.

What is in it

  • Detect UTF-16 byte-order marks and use UTF-8 with BOM handling otherwise.
  • Extend the synthetic objdump CLI fixture to cover UTF-8, UTF-8 with BOM, and UTF-16 listings.

Tested

  • On current main b49be183, BOM-marked UTF-8 and UTF-16 fixtures found no sites; on this branch, full Python script discovery passed 25/25 on Windows and Ubuntu under WSL.
  • An actual Windows PowerShell 5.1 > redirect produced a UTF-16 LE BOM listing; the patched inspector found one site and fallback slot 8.
  • git diff --check and independent source review passed. PR #2049 refactors the same reader and may need a mechanical rebase.

Regression run

  • Not applicable. Only the Python inspector and its synthetic fixture changed.

Not tested

  • A retail binary objdump listing, Rust workspace tests, GPU tests, or title smoke.

AI use

  • Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent independently reviewed it.
**@⁠luckyteagirl** on GitHub · 2026-11-26 05:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2659) `luckyteagirl:codex/record-writers-powershell-listing` → `main` · +17 −5 · 2 files · 1 commits · open The record-writer inspector reads objdump listings as plain UTF-8. A listing saved by Windows PowerShell 5.1 redirection has a UTF-16 BOM; the inspector then silently finds zero record-write sites. Recognize BOM-marked listings while preserving plain UTF-8 input. **What is in it** - Detect UTF-16 byte-order marks and use UTF-8 with BOM handling otherwise. - Extend the synthetic objdump CLI fixture to cover UTF-8, UTF-8 with BOM, and UTF-16 listings. **Tested** - On current main `b49be183`, BOM-marked UTF-8 and UTF-16 fixtures found no sites; on this branch, full Python script discovery passed 25/25 on Windows and Ubuntu under WSL. - An actual Windows PowerShell 5.1 `>` redirect produced a UTF-16 LE BOM listing; the patched inspector found one site and fallback slot 8. - `git diff --check` and independent source review passed. PR #2049 refactors the same reader and may need a mechanical rebase. **Regression run** - Not applicable. Only the Python inspector and its synthetic fixture changed. **Not tested** - A retail binary objdump listing, Rust workspace tests, GPU tests, or title smoke. **AI use** - Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent independently reviewed it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:49 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2659/head:github-bot/gh-2659'
git switch 'github-bot/gh-2659'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2659'
git switch 'github-bot/gh-2659'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2659'
git switch 'github-bot/gh-2659'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2659'
git switch 'main'
git merge --squash 'github-bot/gh-2659'
git switch 'main'
git merge --ff-only 'github-bot/gh-2659'
git switch 'main'
git merge 'github-bot/gh-2659'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.