Skip to content

mark_quoted_ifs_from_raw 的 push_quoted_char 记录字节偏移而 apply 按字符计数——多字节字符在前的引用 IFS 空白位错标(#868 CR 第三缺陷) #876

Closed

Description

@caomengxuan666

来源:PR #874 CR 轮发现的同函数第三缺陷(预存,master 同错;#874 修的 carrier 盲区会让更多多字节词过门,到达面变大)。

形态

IFS=: "é a"$w → <é><aW>(错),GNU <é aW>——push_quoted_char 记录 simulated.len()(字节偏移)而 apply 环按字符计数,多字节字符(é=2 字节)在前的引用 IFS 空白位错标。

修法(CR:仅数行)

push_quoted_char 改记字符 index(或 apply 侧统一字节/字符口径)。

验收

WSL GNU 双侧逐字节(é/中文字符在前的引用 IFS 形 + ASCII 对照不回退);#868 7 例 + #874 家族 107 例不回退。

Activity

  1. added 2 commits that reference this issue on Oct 19, 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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions