1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-15 03:11:54 -07:00
emacs/test/src
Mattias Engdegård a1f76adfb0 Correct regexp matching of raw bytes
Make regexp matching of raw bytes work in all combination of unibyte
and multibyte patterns and targets, as exact strings and in character
alternatives (bug#3687).

* src/regex-emacs.c (analyze_first):
Include raw byte in fastmap when pattern is a multibyte exact string.
Include leading byte in fastmap for raw bytes in character alternatives.
(re_match_2_internal):
Decrement the byte count by the number of bytes in the pattern character,
not 1.
* test/src/regex-emacs-tests.el (regexp-unibyte-unibyte)
(regexp-multibyte-unibyte, regexp-unibyte-mutibyte)
(regexp-multibyte-multibyte): New tests.
2019-06-28 17:30:18 +02:00
..
regex-resources
alloc-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
buffer-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
callint-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
callproc-tests.el Minor change in a comment 2019-04-15 19:11:16 +03:00
casefiddle-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
charset-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
chartab-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cmds-tests.el forward-line now works with bignums 2019-01-27 15:52:06 -08:00
coding-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
data-tests.el Merge from origin/emacs-26 2019-02-15 13:25:30 -08:00
decompress-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
doc-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
editfns-tests.el * test/lisp/progmodes/python-tests.el: "Fix" failing test 2019-04-10 10:39:50 -04:00
emacs-module-tests.el Use extract_time in test module. 2019-05-05 01:34:07 +02:00
eval-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
fileio-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
floatfns-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
fns-tests.el Add support for base64url variant of base-64 encoding/decoding 2019-06-08 10:49:35 +03:00
font-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
inotify-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
json-tests.el Small fix for a JSON unit test. 2019-04-23 12:00:32 +02:00
keyboard-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
keymap-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
lcms-tests.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
lread-tests.el Make warning about unescaped character literals more helpful. 2019-04-19 19:19:35 +02:00
marker-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
minibuf-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
print-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
process-tests.el Remove :stop key from make-process. 2019-04-19 14:03:16 +02:00
regex-emacs-tests.el Correct regexp matching of raw bytes 2019-06-28 17:30:18 +02:00
syntax-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
textprop-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
thread-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
timefns-tests.el Fix decode-time/encode-time roundtrip on macOS 2019-04-30 10:47:17 -07:00
undo-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xml-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00