freebsd-dev/usr.bin/sort
Baptiste Daroussin b58094c0d9 sort: replace home made line reader by getdelim(3)
The previous code had bug when reading lines with an unexpected
encoding, returning without the full line being captured.
This result in sort complaining with "sort: Illegal byte sequence"

Using getdelim(3) instead of the home made code, fixes the situation.

PR:		241679
Reported by:	Ronald F. Guilmette <rfg-freebsd@tristatelogic.com>
MFC After:	1 week
Reviewed by:	markj, imp
Differential Revision:	https://reviews.freebsd.org/D36948
2022-10-12 17:37:33 +02:00
..
tests
bwstring.c sort: replace home made line reader by getdelim(3) 2022-10-12 17:37:33 +02:00
bwstring.h usr.bin/sort: Avoid UBSan errors 2021-07-06 10:51:05 +01:00
coll.c sort: replace malloc+memset with calloc 2022-10-12 16:12:04 +02:00
coll.h sort(1): Memoize MD5 computation to reduce repeated computation 2019-04-13 04:42:17 +00:00
file.c sort: replace home made line reader by getdelim(3) 2022-10-12 17:37:33 +02:00
file.h sort: Change default algorithm to mergesort 2021-06-17 13:53:03 -04:00
Makefile sort: remove NLS support 2022-10-12 16:24:29 +02:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
mem.c sort: add wrapper around calloc 2022-10-12 16:12:04 +02:00
mem.h sort: add wrapper around calloc 2022-10-12 16:12:04 +02:00
radixsort.c sort: replace malloc+memset with calloc 2022-10-12 16:12:04 +02:00
radixsort.h
sort.1.in sort: remove NLS support 2022-10-12 16:24:29 +02:00
sort.c sort: remove NLS support 2022-10-12 16:24:29 +02:00
sort.h sort: remove NLS support 2022-10-12 16:24:29 +02:00
vsort.c
vsort.h