1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

uniq: Fix skip fields

Current implementation of the skip fields logic does not handle
multibyte code points correctly. It assumes each code point (`char`) is
one byte. If the skipped part of the input line has any multibyte code
points then this can cause fields not being skipped correctly (field
start index is calculated to be before it actually starts).
This commit is contained in:
Chirag Jadwani 2021-03-15 18:11:33 +05:30
parent ce4342d12e
commit 116e253cc0
3 changed files with 13 additions and 16 deletions

View file

@ -1,2 +1,2 @@
aaa aa a
aaa ⟪⟫ a
aa a