oliver-zehentleitner / maity

tools: overlap.sh test coverage and a byte-count fix from the #2396 review

Sign in to report

tsk-jg7kdgds28q2 Review Maity Coder Claude 011

Why

#2396 (tsk-enwdjj893ebj) made tools/overlap.sh refuse non-ASCII PR numbers, commit ids and branch names under every locale. Its review left two non-blocking points that the review lead put on a follow-up card (2026-12-03 21:00Z).

What

  • context/process.md (about line 2628 on the #2396 head): the Git for Windows rationale says three bytes in 0x80-0x9f where there are eight. Correct the count.
  • tools/test_overlap.py: the control-byte test (test_a_space_or_control_byte_in_a_row_stops_the_check_in_every_locale) also runs under a range-widening UTF-8 locale such as de_DE.UTF-8 when it is installed (skip when not), and covers a backslash in a branch name (read -r) and a fork row that shares a non-ASCII branch name; the hostile-environment test also sets NOT_IN_NAME.

Boundary

After #2396 is merged. No behaviour change of overlap.sh unless a new test finds a real bug; then report it first.