Skip to content

env polish: child-block U+FFFD byte loss, message forms, stale env.md status #1840

Closed

Description

@caomengxuan666

Verified on X299 against installed WinuxCmd 1.2.1. Captain verification dossier 2026-11-20. Polish bundle, all low severity:

  1. Child-block byte loss: env -i -f ff.env printenv with X=\377 in the file prints X as U+FFFD — the value is lossy-converted when building the UTF-16 child environment block. (The print path itself is byte-faithful, verified.) Note this is distinct from rubash #3965 (spawn-boundary widening to U+00FF before env ever sees the value).
  2. Message forms: --version prints WinuxCmd 1.2.1 (GNU: env (GNU coreutils) X.Y); command-not-found reads env: failed to run command 'x': ... (GNU: env: 'x': ...); -C failure omits the directory name and reason. Exit codes 125/126/127 are all correct — only the texts differ.
  3. Stale doc: DOCS/gnu-coreutils/env.md says -S / -a / debug options are still pending; -S and -v are in fact implemented and GNU-conformant (verified). Update the status page.

Activity

  1. added a commit that references this issue on Nov 22, 2026
    8648345
  2. caomengxuan666 commented on Nov 22, 2026

    @caomengxuan666
    MemberAuthor

    CAPTAIN-VERIFY — delivered by PR #1843, merged as 3aaee81 after a captain graft.

    #1843 was assembled onto current main (its prerequisite #1841 landed in the post-release wave): three-way merge with zero conflicts, dual-stat identical to the original PR, GNU coreutils 9.4 message shapes verified live, and full CI job-for-job identical to the all-green main baseline. The one gap found at graft review — the PR's three new error keys (command.env.error.chdir_failed / exec_failed / shebang_hint) were not recorded in the i18n drift baseline — was closed inside the PR per the gate's own rule (scripts/i18n-drift-baseline.json +3 keys via check_i18n_drift.py --update-baseline), after which i18n-drift turned green and every other job stayed identical to baseline.

  3. added a commit that references this issue on Nov 22, 2026
    3aaee81
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions