Jim Meyering
209850fd7e
avoid problems with sign-extended "char" operand to is* functions
...
* src/cut.c (set_fields): Apply to_uchar to isblank operands.
* src/uniq.c (find_field): Likewise.
* src/seq.c (scan_arg): Likewise, for isspace.
* tests/misc/uniq: New file. Test for the above, but only
when isspace(0240).
* tests/Makefile.am (TESTS): Add misc/uniq.
* configure.ac: Use gt_LOCALE_FR.
* tests/check.mk (TESTS_ENVIRONMENT): Propagate LOCALE_FR to scripts.
* NEWS: Mention the bug fixes.
Before this patch, on FreeBSD 6:
$ printf 'x y z\nx \xa0 y z\n' > in
$ LC_ALL=fr_FR.UTF-8 uniq -f2 in|tr ' ' .
x.y.z
x. .y.z
With the patch:
$ LC_ALL=fr_FR.UTF-8 uniq -f2 in|tr ' ' .
x.y.z
This also affected many other locales:
for i in $(locale -a); do test $(LC_ALL=$i ./uniq -f1 in|wc -l)
= $(LC_ALL=$i uniq -f1 in|wc -l) || echo $i ; done
...
en_GB.ISO8859-1
en_GB.ISO8859-15
en_GB.UTF-8
en_IE.UTF-8
en_NZ.ISO8859-1
en_NZ.ISO8859-15
en_NZ.UTF-8
en_US.ISO8859-1
en_US.ISO8859-15
en_US.UTF-8
...
2008-05-06 08:21:28 +02:00
..
2008-02-17 12:20:17 +01:00
2008-05-06 08:19:28 +02:00
2007-08-30 17:12:56 +02:00
2008-04-23 15:29:11 +02:00
2007-12-04 00:42:18 +01:00
2008-04-29 14:55:38 +02:00
2007-07-23 14:35:58 +02:00
2008-01-30 19:29:11 +01:00
2008-02-28 19:53:07 +01:00
2008-02-28 19:53:07 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-04-02 18:23:04 +02:00
2008-02-28 19:53:07 +01:00
2008-02-28 19:53:07 +01:00
2005-06-02 05:17:24 +00:00
2008-02-28 19:53:07 +01:00
2007-07-23 14:35:58 +02:00
2008-05-06 08:21:28 +02:00
2007-08-22 16:59:40 +02:00
2007-07-23 14:35:58 +02:00
2008-03-07 12:21:37 +01:00
2007-10-27 09:42:27 +02:00
2008-02-17 11:16:18 +01:00
2008-04-19 08:52:08 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-30 17:12:56 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-10-25 08:59:30 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2005-07-18 07:52:37 +00:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-16 19:04:29 +01:00
2008-02-28 19:53:07 +01:00
2008-04-23 15:29:11 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2008-04-23 17:51:44 +02:00
2008-03-10 19:47:15 +01:00
2008-03-26 01:17:15 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-23 14:00:35 +02:00
2007-08-30 17:12:56 +02:00
2008-02-17 11:16:18 +01:00
2008-04-12 12:43:24 +02:00
2008-04-19 00:24:55 +02:00
2008-03-26 00:57:29 +01:00
2008-03-28 23:03:27 +01:00
2008-04-16 14:21:40 +02:00
2008-03-19 16:48:32 +01:00
2007-12-01 10:09:57 +01:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-24 14:51:55 +02:00
2008-03-27 13:32:38 +01:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-04-19 13:34:38 +02:00
2008-03-19 16:48:32 +01:00
2008-03-16 19:04:29 +01:00
2008-03-10 19:47:15 +01:00
2008-03-10 19:47:15 +01:00
2008-03-21 20:58:15 +01:00
2007-08-30 17:12:56 +02:00
2007-08-28 11:23:27 +02:00
2008-04-06 09:26:32 +02:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2008-03-10 19:47:15 +01:00
2008-04-29 14:55:38 +02:00
2008-05-06 08:21:28 +02:00
2008-01-26 10:04:17 +01:00
2007-12-04 00:42:18 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2008-02-20 08:41:29 +01:00
2008-02-07 08:26:48 +01:00
2008-02-28 19:53:07 +01:00
2007-07-23 14:35:58 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-01-30 19:29:11 +01:00
2007-07-23 14:35:58 +02:00
2008-05-05 13:15:32 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-19 16:48:32 +01:00
2008-03-19 16:48:32 +01:00
2008-01-06 00:09:29 +01:00
2007-08-30 17:12:56 +02:00
2007-10-07 18:16:07 +02:00
2007-08-29 00:14:23 +02:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2008-05-06 08:21:28 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00