diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-06-30 18:55:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-06-30 18:55:53 +0000 |
commit | e42db3097f625482ba3e1e517afd12db7bd46238 (patch) | |
tree | 5c3325b38a61872f59e160106194e707223d156f /regress/bin | |
parent | d2dd09e369dbcb278521eecc2b7cbc28f991fcf3 (diff) |
The byte \0363 is not invalid in UTF-8.
The incorrectness of this test was exposed by the bugfix
in /usr/src/bin/ksh/emacs.c rev. 1.88 and reported to me by bluhm@.
This is a minimal fix replacing the incorrect test line
with two correct tests involving the same byte.
OK anton@
Diffstat (limited to 'regress/bin')
-rw-r--r-- | regress/bin/ksh/edit/emacs.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/bin/ksh/edit/emacs.sh b/regress/bin/ksh/edit/emacs.sh index 0a245f7aaf4..47f050b4aae 100644 --- a/regress/bin/ksh/edit/emacs.sh +++ b/regress/bin/ksh/edit/emacs.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: emacs.sh,v 1.11 2019/04/03 14:59:34 jca Exp $ +# $OpenBSD: emacs.sh,v 1.12 2021/06/30 18:55:52 schwarze Exp $ # # Copyright (c) 2017 Anton Lindqvist <anton@openbsd.org> # Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -58,6 +58,8 @@ testseq "z\0002\0355\0200\0006" " # z\b\0355\0200z\bz" testseq "z\0002\0355\0237\0006" " # z\b\0355\0237z\bz" testseq "z\0002\0356\0200\0006" " # z\b\0356\0200z\bz" testseq "z\0002\0357\0277\0006" " # z\b\0357\0277z\bz" +testseq "z\0002\0363\0200\0200\0006" " # z\b\0363\0200\0200z\bz" +testseq "z\0002\0363\0277\0277\0006" " # z\b\0363\0277\0277z\bz" testseq "z\0002\0364\0200\0200\0006" " # z\b\0364\0200\0200z\bz" testseq "z\0002\0364\0217\0277\0006" " # z\b\0364\0217\0277z\bz" @@ -65,7 +67,6 @@ testseq "z\0002\0364\0217\0277\0006" " # z\b\0364\0217\0277z\bz" testseq "z\0002\0300\0277" " # z\b\0300z\b\b\0300\0277z\b" testseq "z\0002\0301\0277" " # z\b\0301z\b\b\0301\0277z\b" testseq "z\0002\0360\0217" " # z\b\0360z\b\b\0360\0217z\b" -testseq "z\0002\0363\0217" " # z\b\0363z\b\b\0363\0217z\b" testseq "z\0002\0365\0217" " # z\b\0365z\b\b\0365\0217z\b" testseq "z\0002\0367\0217" " # z\b\0367z\b\b\0367\0217z\b" testseq "z\0002\0370\0217" " # z\b\0370z\b\b\0370\0217z\b" |