Commit graph

7 commits

Author SHA1 Message Date
Yury Zhytkou 17174ab986
uniq: pass remaining GNU tests (#5994) 2024-02-25 09:45:37 +01:00
Leviticoh b90b59c003
uniq: added support for deprecated -N option (#4228) 2023-09-24 14:44:44 +02:00
Chirag Jadwani 19c6a42de5 uniq: implement group option 2021-04-04 15:22:17 +05:30
Chirag Jadwani 116e253cc0 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).
2021-03-15 18:48:54 +05:30
Chirag Jadwani ce4342d12e uniq: Fix panic on invalid utf-8 input 2021-03-15 18:48:54 +05:30
Chris Nikkel c0b2da7c01 uniq: add test for zero terminated input and output 2016-08-06 18:41:39 -07:00
Chirag B. Jadwani 676e3718c3 uniq: add tests 2016-02-29 11:07:16 +05:30