Files
openclaw/src
wings1029 6da7868158 fix(process): report actual UTF-8 byte count in stdin write message (#104966)
* fix(process): report actual UTF-8 byte count in stdin write message

Replace string.length (UTF-16 code units) with Buffer.byteLength(content, 'utf8')
so the reported byte count matches the actual bytes written to process stdin.

For ASCII content the values are identical. For non-ASCII content (CJK, emoji),
string.length underreports the actual UTF-8 byte count.

* test(process): cover UTF-8 stdin write byte count

Co-authored-by: 陈志强0668000989 <chen.zhiqiang1@xydigit.com>

* style(test): keep UTF-8 regression compact

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-15 10:03:49 -07:00
..
2026-07-15 13:05:10 +01:00