Skip to content

install.sh and openRepoShape: the control-character check matches bytes, so a GBK or GB18030 name holding 0xC2 and a byte from 0x80 to 0x9F is refused as a control, and a lone 0x9B, which an 8-bit terminal acts on, is placed #858

Closed

Description

@brettheap

Goal: the check that refuses a C1 control in $OPENREPOSHAPE_BIN_DIR is decided for the two names it answers by bytes alone: a GBK or GB18030 name that holds hanzi is not refused as a control character, and a lone C1 byte that an 8-bit terminal acts on is not placed, or each is said to be a known limit in the refusal's words and on the issue.

Filed by lane openRepoShape-5, from the checklist candidates of #760's PR (#804, writer w760, "Checklist candidates (not filed)": "A lone 0x9B byte ... matches in no locale" and "A GBK or GB18030 locale reads 0xC2 0x80 to 0xC2 0x9F as hanzi, so the arm refuses a directory holding one. Measured with codecs only"). Lane 2's #841 (the fix for #837) names the second for its own 29 characters in its "Left out" ("refused all the same. Not measured: no such locale can be built here") and fixes neither. Both lines are about the same check in two files, and both are limits #804 documents and leaves.

Lands after: lane 5's #760 (PR #804, fix/760-bin-dir-control-chars, head 7e4181c0), which adds the check: main has none (git grep cntrl in install.sh and openRepoShape finds nothing), and lane 2's #837 (PR #841, fix/837-bin-dir-format-chars, head cc5ae88e, stacked on #804), which adds misdrawn_characters beside it. path:line is at #804's head, with #841's said where it differs.

Lines

Verify: tests/test_openreposhape_command.py, tests/test_install_sh.py, tests/test_install_sh_filter_repo.py and tests/test_openreposhape_package.py pass on Linux. The first line has no test that runs a GBK locale: none can be built here or on CI. Where its Direction is taken, a stub locale on PATH that answers charmap with GB18030 (and UTF-8) holds the branch, through both files, with a name of one of the 32 hanzi placed under the first and refused under the second. For the second line, if a rule is taken: cases beside #804's C1_BIN_DIRS (the lone byte refused), and NOT_CONTROLS gaining U+011B and a name that holds U+2019 (UTF-8 0xE2 0x80 0x99) to hold the other side, under C and C.UTF-8, through both files; one mutant per byte of the rule, each caught. No macOS or Windows run.

Overlaps. #804 and #841 are the only open branches that edit install.sh, openRepoShape, tests/test_install_sh.py and tests/test_openreposhape_command.py, so this lands after both. install.sh is a release asset and openRepoShape is the launcher: neither is a pinned shape copy, so no upstream-changed row follows. No README, handbook or docs/cli.md sentence names these bytes.

Parent: #461.

Milestone: v1.1.1. Both need a directory name the person set in their own environment: the first refuses a name that is fine in a locale nobody here has, and fails closed; the second places a raw byte that only an 8-bit terminal acts on. Neither is a regression, and neither blocks v1.1.0.

🤖 Generated with Claude Code

Activity

  1. added this to the v1.1.1 milestone on Oct 17, 2026
  2. brettheap commented on Oct 18, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-2, session 81650e29-c906-4fe8-96c9-55580bfe0c44@Eagle, 2026-10-18T00:52:52Z, for #858

    Logged in lanes/log/openRepoShape-2.md at f3add7279c38791f542a6482bccb2c625de39e7a.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#858:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#858"`, kept where the row or its body names `#858`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `858` as a whole token:
       none
    
  3. brettheap commented on Oct 18, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-2, 2026-10-18T05:06:14Z) #867 (5c54af2) closes #858. Line 2, a lone 0x9B byte, is left as a known limit; the Goal asks for that to be said here.

    Lane: openreposhape-2 (openRepoShape-2)

  4. added a commit that references this issue on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions