Skip to content

[candidate] fold: bug(fold): when passing $'\xFF' it reports incorrect error messages (uutils#12806) #342

Closed

Description

@caomengxuan666

上游

状态

GAP-候选:标题疑似行为差距,尚未差分验证(oracle GNU 8.32)。脚手架:audit_uutils_open.py;汇总:GAP_REPORT.md。

Activity

  1. added
    compat-candidate
    uutils
    wording
    and removed
    compat-candidate
    on Sep 9, 2026
  2. caomengxuan666 commented on Sep 14, 2026

    @caomengxuan666
    MemberAuthor

    Fixed in 4348e1d — verified against WSL GNU coreutils 9.4 (GNU echo arg scanning, comm sorted-order warning, csplit error exit, fold -c GNU 9.5 option, tr/fmt/pr/head/ptx/yes diagnostics). See issues/report-textutils.md and report-printf-od.md.

  3. caomengxuan666 commented on Nov 4, 2026

    @caomengxuan666
    MemberAuthor

    重开(实验 Q4 抽验裁定 BAD,2026-11-04)

    fold:打不开本 shell 刚创建的 0xFF 字节文件名(rc 1),GNU rc 0。原关闭属 wording 类——Q4 抽验(win 侧实测)证明是真缺陷而非措辞差异。

    证据:WinuxCmd #1517 的 win 侧执行报告(2026-11-03/04 实测 vs GNU bash 5.3.20 + coreutils 9.4);原始日志在 win 侧 evidence/q4-q5/。归宿:WinuxCmd 家族批次修复波(1.5.1 长尾),与工程⑥证据基对账。

  4. added
    bug
    compat-gap
    and removed
    wording
    on Nov 4, 2026
  5. caomengxuan666 commented on Nov 4, 2026

    @caomengxuan666
    MemberAuthor

    已由 PR #1520 合入(merge 95bab47,队长已验:head ec92dde 全 checks 绿,x64-default ctest 3742/3742,本单钉 fold_opens_non_ascii_filename_issue342 有独立 Passed 行)。

    修法(机制级):native_path::normalize_api_operand 返回的 UTF-8 std::string 不再喂 std::ifstream 窄构造(ANSI 代码页解码、非 ASCII 名必坏),全部改走 file_io::open_binary_file —— fold + csplit、expand、unexpand、fmt、du、less、pager ×2、ldd、column、more、strings、env、shuf 共 14 处 / 13 文件;已核安全面(split/install/file/dos2unix 族/grep 等)不动。

    残差:同类的三个文本模式读者(dircolors、hexdump -f、hostname -F)因 CRLF 语义需逐个裁 → 已立 #1522(阶段 3 长尾)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcompat-gapuutils

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions