1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-11-01 07:32:01 +00:00

Fix the read_line method for utf16le input

to determine the end of the line, instead of reading until \n (0x0A) and then reading until 0x00 and calling it done, read until we find 0x00 preceded by 0x0A.
This commit is contained in:
Keith Hall
2025-08-07 23:31:15 +03:00
parent 76e6a49a2e
commit 6675153460
2 changed files with 46 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
- Add missing mappings for various bash/zsh files, see PR #3262 (@AdamGaskins)
- Send all bat errors to stderr by default, see #3336 (@JerryImMouse)
- Make --map-syntax target case insensitive to match --language, see #3206 (@keith-hall)
- Correctly determine the end of the line in UTF16LE input #3369 (@keith-hall)
## Other