📝 摘要
按字节截断子进程输出会在读取前改变其语义内容。
#10345 · yamingmou · 2026-10-19
按字节截断子进程输出会在读取前改变其语义内容。
A truncation is supposed to remove content. It is not supposed to alter what is left. Here it alters. When a subprocess collector keeps more output than it has room for, it drops the head of its buffer by bytes, with no regard for where a character ends. The first thing a reader sees can therefore b……
节选自讨论正文开头,完整内容见原文