You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Finish explicit UTF-8 in hash-bound sources and subprocess pipes #162
The explicit UTF-8 change left two kinds of locale-dependent text handling in place.
Hash-bound sources. Editing these moves a hash that frozen evidence compares with current source, so 38 calls in 14 files stay implicit. tests/test_explicit_utf8_io.py lists each file, its reason and its call count:
Subprocess pipes.subprocess calls with text=True and no encoding still decode with the locale. That is about 240 calls, 49 of them in src/. The guard does not cover them, because a child process may really write in the locale encoding, so each call needs its own decision.
Proposal
Add encoding="utf-8" to each hash-bound file when its binding next changes for another reason, such as a new scorer revision or a new resource protocol, then remove its guard entry.
Decide the subprocess encoding per call, then extend the guard.
Related: #90, #84. Part of the refactor roadmap: #87
charts.py was fixed in #211. The remaining implicit calls are in hash-bound sources, and tests/test_explicit_utf8_io.py counts them, so the exemption cannot grow unseen. There is no demonstrated failure in the text=True calls. Closed during the issue cleanup after rechecking against main. Reopen if you disagree.
Activity
lanyue-llk commentedon Nov 4, 2026
charts.pywas fixed in #211. The remaining implicit calls are in hash-bound sources, andtests/test_explicit_utf8_io.pycounts them, so the exemption cannot grow unseen. There is no demonstrated failure in thetext=Truecalls. Closed during the issue cleanup after rechecking against main. Reopen if you disagree.