mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 22:21:42 +00:00
* fix(oc-path): report UTF-8 byte counts in set command output Use Buffer.byteLength(newBytes, 'utf8') instead of string.length for bytesWritten and dry-run byte reports. JavaScript's string.length counts UTF-16 code units which undercounts multi-byte characters when writing UTF-8 files. Co-Authored-By: Claude <noreply@anthropic.com> * test(oc-path): cover human UTF-8 dry-run count --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>