Files
tauri-plugins-workspace/plugins/fs/src
Lucas Fernandes Nogueira 5c144e7466 fix(fs): only split UTF-16 lines on aligned line feeds (#3631)
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).
2026-10-09 13:04:09 -03:00
..
2026-09-26 15:57:33 -03:00
2026-09-22 11:30:47 -03:00
2026-09-22 11:30:47 -03:00
2026-09-26 15:57:33 -03:00
2026-09-26 15:57:33 -03:00
2026-09-26 15:36:22 -03:00
2026-09-26 15:36:22 -03:00