Skip to content

[bug] applets fail on literal-colon operands: canon layer does not carrier-encode operand path components #1874

Done

Description

@caomengxuan666

[bug] applets fail on literal-colon operands: canon layer does not carrier-encode operand path components

Found by the rubash #4188 verification lane on a real Windows host (devin-windows, Windows Server 2022), against the published v1.2.3 binaries; split from rubash #4188, whose shell-side half is fixed separately.

Shapes (bundled ls.exe driven directly, tree on disk carries the MSYS-standard encoded name x+U+F03A+y/z):

  • ls x:y/z (relative literal) — fails
  • ls ./x:y/z — fails
  • ls C:\…\x:y\z (native absolute literal) — fails
  • The same three shapes spelled with the U+F03A character — all pass

So the applet canon layer (prepare_operand and friends) passes literal colon components through to the Win32 layer, which cannot address them; the carrier encoding that the shell side (rubash funnel, per-component since the #4188 fix) and MSYS both apply is missing on this side. Inside niu this surfaces as: by-name relative ls x:y/z still rc=2 even with the shell funnel fixed, while every shell-internal consumer works.

Expected: operand paths are carrier-encoded per component at the canon entry (drive indicator exempt), matching the cross-repo contract — the same entry the #1870 anchoring fix touches, so the two may share one mechanism; the captain will rule the bundling when the #1870 lane reports.

Acceptance: the three literal shapes above pass for ls plus a spot family (stat/cat), encoded spellings keep working, and no regression on plain operands.

Activity

  1. added
    bug
    on Nov 25, 2026
  2. added 2 commits that reference this issue on Nov 25, 2026
  3. caomengxuan666 commented on Nov 25, 2026

    @caomengxuan666
    MemberAuthor

    Closed by #1876 (captain-verified above): both carrier folds now encode per component with the drive indicator as the only exemption, the full-consumer regression differential is clean, and the niu-side face that exposed this (by-name relative ls x:y/z) is verified green on a real host. With this, the colon-path family that started at niubash #1101 — rubash #4188, WinuxCmd #1870 and this issue — is fully closed.

  4. added a commit that references this issue on Nov 26, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions