sort: fix --debug marking for -b -k1.x
commit872c0df857d322f8119c64853d042f17c1913c3a
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Dec 2015 02:14:06 +0000 (13 02:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Dec 2015 13:40:51 +0000 (14 13:40 +0000)
treec81e8e0ff1b73ff1dbfc6d99da4ab706a25e7b8a
parent1118f32145049cc4b949e89eda89a0ed612755de
sort: fix --debug marking for -b -k1.x

We were erroneously skipping blanks in the marked comparison
_after_ the key start offset was applied.
* src/sort.c (debug_keys): Don't skip starting blanks
if already handled by begfield().
* tests/misc/sort-debug-keys.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes http://bugs.gnu.org/22155
NEWS
src/sort.c
tests/misc/sort-debug-keys.sh