Parsing UTF-8 in changes (bytes vs chars)
[?]
Dec 5, 2020, 3:23 PM
FYVZZNRQ4ZCJN7EJ7LRN4A6TYTWUG4YHRVMD4KAFYJALEBLZOBDQCDependencies
- [2]
OXMYGLW2Printing the actual lines rather than str::lines + \n - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in libpijul/src/change.rs at line 2499
while let Some(n) = contents.chars().position(|c| c == '\n') {while let Some(n) = contents.as_bytes().iter().position(|&c| c == b'\n') {