freebsd-nq/usr.bin/sort
Mark Johnston 8d8b9b560a sort: Fix message catalogue usage
- Check that catopen() succeeded before calling catclose().  musl will
  crash in the latter if the catalogue descriptor is -1.
- Keep the message catalogue open for most of sort(1)'s actual
  operation.
- Don't use catgets(3) to print error messages if catopen(3) had failed.

Reviewed by:	arichardson, emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34081
2022-01-28 16:52:29 -05:00
..
nls
tests
bwstring.c sort: Fix random sort 2021-10-29 14:29:50 -04:00
bwstring.h usr.bin/sort: Avoid UBSan errors 2021-07-06 10:51:05 +01:00
coll.c
coll.h
file.c sort(1): Remove duplicate option check 2020-09-08 15:01:49 +00:00
file.h sort: Change default algorithm to mergesort 2021-06-17 13:53:03 -04:00
Makefile usr.bin/sort: Avoid UBSan errors 2021-07-06 10:51:05 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options
mem.c
mem.h
radixsort.c sort: Cache value of MB_CUR_MAX 2021-05-13 09:33:19 -04:00
radixsort.h
sort.1.in
sort.c sort: Fix message catalogue usage 2022-01-28 16:52:29 -05:00
sort.h sort: Fix message catalogue usage 2022-01-28 16:52:29 -05:00
vsort.c
vsort.h