mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Use `ZigString.initUTF8()` instead of `ZigString.init()` when handling non-encoded_slice PathLike variants. The latter doesn't mark bytes as UTF-8, causing `toSliceClone()` to treat them as Latin1 and double-encode to UTF-8. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>