seq: output decimal points consistently with invalid locales
commit03fbb5ecec045d41b28c5ec9750ee94e4bea074d
authorPádraig Brady <P@draigBrady.com>
Sun, 3 Feb 2019 03:16:02 +0000 (2 19:16 -0800)
committerPádraig Brady <P@draigBrady.com>
Mon, 4 Feb 2019 01:18:08 +0000 (3 17:18 -0800)
treefd36173a84b106f030c7f1c940ae771ddc196ec9
parent027eeec7b032ae4c85344c67a270b00e3f47ee63
seq: output decimal points consistently with invalid locales

* src/seq.c (print_numbers): Only reset the locale if it
was successfully set originally.
* tests/misc/seq-locale.sh: Add a new test.
* tests/local.mk: Reference the new test.
* NEWS: Mention the fix.
NEWS
src/seq.c
tests/local.mk
tests/misc/seq-locale.sh [new file with mode: 0755]