Skip to content

ptx: layout model diverges from GNU (keyword column width, small-width keyword truncation, context wrap) #1906

Backlog

Description

@caomengxuan666

队长在 #1894 运行时复验中分离出的先存分歧(非 #1894 引入:base 363d7a0c 与该 PR head 的布局代码逐行相同,源于已合入的 ptx 移植本体 C++ subset 的 half-grid 模型):

与 GNU coreutils 9.4 ptx 逐字节差分(截断内容面已由 #1894 对齐后)仍有三层布局分歧:

  • L1 关键字列宽:winux 恒 width/2,GNU 为 width/2+gap。
  • L2 小宽下关键字本体:GNU 不截断关键字本体,winux 截断。
  • L3 上下文回绕:GNU 在行内循环回绕上下文,winux 行内截断。

证据:X299 运行时 oracle 全行逐字节 0/12、而截断内容形(hello\xe2/、\x87\xe2\x80\x94 hello 等)全合——即内容对、版式不对。rt4 首轮诊断把两层叠在一起报成 0/7,本票即第二层。

期望:ptx 布局模型按 GNU 口径重做(列宽公式、小宽关键字保全、上下文回绕),逐字节对齐。

卷宗:~/workspace/unixwin_patrol/lane-rt4-x299-2026-11-27.md(续跑三节)。

Activity

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