diff --git a/NEWS b/NEWS index 26da9993e..61ba3cf19 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,11 @@ GNU coreutils NEWS -*- outline -*- numfmt options like --suffix no longer have an arbitrary 127-byte limit. [bug introduced with numfmt in coreutils-8.21] + sort again handles thousands grouping characters in single-byte locales + where the grouping character is greater than CHAR_MAX. For e.g. signed + character platforms with a 0xA0 (aka  ) grouping character. + [bug introduced in coreutils-9.1] + tail no longer mishandles input from files in /proc and /sys file systems, on systems with a page size larger than the stdio BUFSIZ. [This bug was present in "the beginning".] diff --git a/gl/lib/strnumcmp-in.h b/gl/lib/strnumcmp-in.h index 39b5caf77..3a69db732 100644 --- a/gl/lib/strnumcmp-in.h +++ b/gl/lib/strnumcmp-in.h @@ -114,8 +114,8 @@ static inline int _GL_ATTRIBUTE_PURE numcompare (char const *a, char const *b, int decimal_point, int thousands_sep) { - unsigned char tmpa = *a; - unsigned char tmpb = *b; + char tmpa = *a; + char tmpb = *b; int tmp; size_t log_a; size_t log_b;