sort: handle musl locale differences in --debug reporting
commit787a8876fa83f2b66ccc770269fa9d481eef3b4c
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Aug 2017 07:45:32 +0000 (13 00:45 -0700)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Aug 2017 04:32:11 +0000 (13 21:32 -0700)
tree05da27a44086de29d5afeb8d0dff64118e864c1c
parentae150112846275604688f723ed0960309b289eec
sort: handle musl locale differences in --debug reporting

* src/sort.c (main): Don't assume hard_LC_COLLATE implies
a successful setting of the locale as musl defaults to
UTF8 when failing to set the specified locale.
* tests/misc/sort-debug-warn.sh: Adjust for the now
separated locale debug info and map the musl specific
message back to the common case.
Addresses https://bugs.gnu.org/28054
src/sort.c
tests/misc/sort-debug-warn.sh