]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: modify 'leading spaces' debug warning scenarios
authorAssaf Gordon <assafgordon@gmail.com>
Wed, 1 Jun 2016 00:19:38 +0000 (20:19 -0400)
committerAssaf Gordon <assafgordon@gmail.com>
Wed, 1 Jun 2016 01:29:52 +0000 (21:29 -0400)
commit6223bf94bfeac75fb4252095864a80545ba00a0d
tree6f6c6c499f3c711bc4bc01a9fdf675d0fbf001cd
parentd548f87595a193e21b170368bc8fc2ded4dadb73
sort: modify 'leading spaces' debug warning scenarios

Print warning regardless of locale, avoid warning if key is zero width.
Problem reported by Karl Berry in http://bugs.gnu.org/23665 .

* src/sort.c: (key_warnings): change conditions for 'leading spaces'
warning.
* tests/misc/sort-debug-warn.sh: adjust tests accordingly.
src/sort.c
tests/misc/sort-debug-warn.sh