Paul Eggert
11b01fc21f
join,uniq: support multi-byte separators
...
* NEWS: Mention this.
* bootstrap.conf (gnulib_modules): Remove cu-ctype, as this module
is now more trouble than it’s worth. All uses removed.
Add skipchars.
* gl/lib/cu-ctype.c, gl/lib/cu-ctype.h, gl/modules/cu-ctype:
Remove.
* gl/lib/skipchars.c, gl/lib/skipchars.h, gl/modules/skipchars:
* tests/misc/join-utf8.sh:
New files.
* src/join.c: Include skipchars.h and mcel.h instead of cu-ctype.h.
(tab): Now mcel_t, not int. All uses changed.
(output_separator, output_seplen): New static vars.
(eq_tab, newline_or_blank, comma_or_blank): New functions.
(xfields, prfields, prjoin, add_field_list, main):
Support multi-byte characters.
* src/numfmt.c: Include ctype.h, skipchars.h.
Do not include cu-ctype.h.
(newline_or_blank): New function.
(next_field): Support multi-byte characters.
* src/sort.c: Include ctype.h instead of cu-ctype.h.
(inittables): Open-code field_sep since it no longer exists.
‘sort’ is not multi-byte safe yet, but when it is this code
will need revamping anyway.
* src/uniq.c: Include mcel.h and skipchars.h instead of cu-ctype.h.
(newline_or_blank): New function.
(find_field): Support multi-byte characters.
* tests/local.mk (all_tests): Add tests/misc/join-utf8.sh
2023-10-30 00:58:04 -07:00
..
2023-10-30 00:58:03 -07:00
2021-03-29 14:10:09 +01:00
2023-07-01 11:51:16 -07:00
2023-10-28 13:13:50 +01:00
2023-09-04 23:12:02 -07:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-08-30 20:32:13 -07:00
2023-09-04 23:12:02 -07:00
2023-06-29 15:29:29 -07:00
2023-07-01 11:51:16 -07:00
2023-10-30 00:58:04 -07:00
2023-04-24 11:46:28 +01:00
2023-07-31 17:51:28 -07:00
2023-02-06 13:09:40 +00:00
2023-07-17 11:28:36 +01:00
2023-09-08 16:25:39 -07:00
2023-09-08 16:25:39 -07:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-07-01 11:51:16 -07:00
2023-09-04 23:12:02 -07:00
2022-01-31 12:07:39 -08:00
2023-08-28 14:06:43 -07:00
2023-04-10 19:45:14 +01:00
2023-10-30 00:58:04 -07:00
2023-08-01 15:35:44 +01:00
2023-07-01 11:51:16 -07:00
2023-01-01 14:50:15 +00:00
2023-10-30 00:58:04 -07:00
2023-09-23 00:28:27 -07:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-06-12 21:55:51 +01:00
2023-07-01 11:51:16 -07:00
2023-01-01 14:50:15 +00:00
2023-09-04 23:12:02 -07:00
2023-10-30 00:58:03 -07:00
2023-07-31 17:51:28 -07:00
2023-10-30 00:58:04 -07:00
2023-08-28 14:06:43 -07:00
2023-10-30 00:58:04 -07:00
2023-09-23 00:28:26 -07:00
2023-01-01 14:50:15 +00:00
2023-09-23 01:15:50 -07:00
2005-07-18 07:52:37 +00:00
2023-07-01 11:51:16 -07:00
2023-01-01 14:50:15 +00:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-06-29 15:29:29 -07:00
2021-10-31 22:36:46 -07:00
2023-09-13 23:08:02 +01:00
2023-09-13 23:08:02 +01:00
2023-01-01 14:50:15 +00:00
2023-07-01 11:51:16 -07:00
2023-09-04 23:12:02 -07:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-09-04 23:12:02 -07:00
2023-08-30 20:32:13 -07:00
2023-03-13 21:26:21 +00:00
2023-10-30 00:58:04 -07:00
2023-08-30 20:32:13 -07:00
2023-09-13 23:08:02 +01:00
2023-07-01 11:51:16 -07:00
2023-09-04 23:12:02 -07:00
2023-09-23 17:20:25 -07:00
2023-07-01 11:51:16 -07:00
2023-01-01 14:50:15 +00:00
2023-10-30 00:58:04 -07:00
2012-01-09 21:51:59 +01:00
2023-04-26 18:20:20 -07:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-07-31 17:51:28 -07:00
2023-08-28 14:06:43 -07:00
2023-07-01 11:51:16 -07:00
2023-09-13 23:08:02 +01:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-07-01 11:51:16 -07:00
2023-01-01 14:50:15 +00:00
2023-07-17 11:28:36 +01:00
2023-09-23 00:28:26 -07:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-06-29 15:29:29 -07:00
2023-10-30 00:58:03 -07:00
2023-08-28 14:06:43 -07:00
2023-08-28 14:06:43 -07:00
2023-10-30 00:58:04 -07:00
2023-09-04 23:12:02 -07:00
2023-07-01 11:51:16 -07:00
2023-08-28 14:06:43 -07:00
2023-07-01 11:51:16 -07:00
2023-01-01 14:50:15 +00:00
2023-07-01 11:51:16 -07:00
2023-06-29 15:29:29 -07:00
2023-09-25 15:26:31 +01:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00
2023-06-29 15:29:29 -07:00
2023-01-01 14:50:15 +00:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-01-01 14:50:15 +00:00
2023-09-04 23:12:02 -07:00
2023-07-17 11:28:36 +01:00
2023-07-01 11:51:16 -07:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:03 -07:00
2023-01-01 14:50:15 +00:00
2023-10-30 00:58:04 -07:00
2023-08-28 14:06:43 -07:00
2023-03-15 14:05:38 +00:00
2023-02-06 13:09:40 +00:00
2023-07-01 11:51:16 -07:00
2023-10-30 00:58:04 -07:00
2023-07-01 11:51:16 -07:00
2023-07-31 18:55:19 +01:00
2023-09-23 01:15:50 -07:00
2023-07-01 11:51:16 -07:00
2023-07-18 23:10:40 +01:00
2023-07-18 23:10:40 +01:00
2023-10-30 00:58:04 -07:00
2023-08-30 20:32:13 -07:00
2023-07-01 11:51:16 -07:00
2023-10-30 00:58:04 -07:00
2023-06-29 15:29:29 -07:00
2023-10-30 00:58:04 -07:00
2023-08-28 14:06:43 -07:00
2023-07-01 11:51:16 -07:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2023-07-01 11:51:16 -07:00
2012-01-09 21:51:59 +01:00
2023-10-30 00:58:04 -07:00
2023-10-30 00:58:04 -07:00
2023-07-01 11:51:16 -07:00
2023-09-13 23:08:02 +01:00
2023-08-11 14:07:37 +01:00
2023-09-23 17:20:26 -07:00
2023-10-30 00:58:04 -07:00
2023-09-23 17:07:52 -07:00
2023-08-11 14:07:37 +01:00
2023-07-01 11:51:16 -07:00
2023-07-01 11:51:16 -07:00