sort: Fix two bugs with determining the end of field
authorPádraig Brady <P@draigBrady.com>
Tue, 24 Feb 2009 08:37:18 +0000 (08:37 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 26 Feb 2009 14:40:28 +0000 (14:40 +0000)
commit224a69b56b716f57e3a018af5a9b9379f32da3fc
tree68d8a3efffc2ce74a4805dc1c8c372df87850306
parent9a2a8f0b3e01be360e8e928a7b583e05d22b89ff
sort: Fix two bugs with determining the end of field

* src/sort.c: When no specific number of chars to skip
is specified for the end field, always skip the whole field.
Also never include leading spaces from next field.
* tests/misc/sort: Add 2 new tests for these cases.
* NEWS: Mention this bug fix.
* THANKS: Add bug reporter.
Reported by Davide Canova.
NEWS
THANKS
src/sort.c
tests/misc/sort