Assaf Gordon
a9f2be5bfe
expr: add multibyte support
...
Discussed in https://bugs.gnu.org/26779 .
* NEWS: Mention the improvement.
* bootstrap.conf: Add gnulib modules mbslen,mbschr.
* src/expr.c (mbs_logical_substr): New function to return a substring
based on logical character positions (instead of bytes).
(mbs_logical_cspn): Similar to strcspn/mbscspn, but returns number of
logical characters instead of byte offset.
(mbs_offset_to_chars): New function to return number of logical
characters fitting in a given byte offset.
(docolon): Report matched logical characters instead of bytes.
(eval6): For length/substr/index operations, use logical characters
instead of bytes by calling the above new functions.
* tests/misc/expr.pl: Repeat all tests with non-C locale to detect any
regressions.
* tests/misc/expr-multibyte.pl: New tests with multibyte input.
* tests/local.mk: Add new test file.
2017-06-28 01:23:52 +00:00
..
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-03-27 21:23:07 -07:00
2017-01-01 22:38:02 +00:00
2017-04-22 02:47:21 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-26 21:49:12 -07:00
2017-01-20 18:24:54 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-02 16:35:08 -07:00
2017-06-28 01:23:52 +00:00
2017-06-28 01:23:52 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-03-27 20:32:58 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-02-26 09:31:50 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-17 19:44:30 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-03-11 10:48:10 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-09 15:15:04 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-14 23:59:01 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-09 15:15:04 -08:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-04-05 11:35:35 -07:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00
2017-01-01 22:38:02 +00:00