Repository navigation
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Independent Windows Review
What changed:
tools/bink_names.py:- Uses
encoding="utf-8-sig"inload_streamsandload_pins. - Transparently strips UTF-8 byte order marks (
\ufeff) often produced by Windows editors and Excel CSV exports, preventing header field misidentification (\ufeffsource!=source).
- Uses
Verification on Windows 11 host:
- Ran
python -I -m unittest discover -s tests -p test_bink_names.py -k test_cli_reads_records_from_all_three_sources: passes. - Clean diff: standard library only, no game files.
LGTM!
|
Tested b3ff321 on Linux x86_64 (WSL2), Python 3.14, no GPU: pass. Ran tests/test_bink_names.py (34 OK; 2 errors against main's tools/bink_names.py), compileall and check_no_game_data. Note (not blocking): the JSON source open at tools/bink_names.py:144 still uses utf-8, so a BOM JSON still fails. AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). |
|
Reviewed
The PR switches CSV readers to AI-assisted review. |
Summary
bink_names.pytreated the UTF-8 BOM at the start of a CSV as part of its first header, so a valid stream report appeared to be missingsourceand a pin catalogue appeared to be missingoffset. Read both CSV inputs withutf-8-sigso BOM-prefixed and plain files take the same validation path.BUILD-BINK-NAMES-CSV-BOM claim
Verification
main@6312c057, the new fixture failed for both BOM-prefixed inputs. All six report-input tests pass with the fix.python -B -I scripts/check_no_game_data.pyandgit diff --checkpassed.AI-assisted (Codex).