mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
In plugins/fs/src/commands.rs read_until_bytes / LinesBytes, the line feed sequence was matched at any byte offset, so UTF-16LE "ਗĀ" (17 0a 00 01) or UTF-16BE "Āਗ" (01 00 0a 17) split mid code unit and every following line was decoded misaligned. Line feed and carriage return sequences now only match on a multiple of their length from the start of the line. Unit tests with both examples (they fail without the fix).