From 998a0ad92b910ffb9b7d77114cfc9f1cb8fa0fd7 Mon Sep 17 00:00:00 2001 From: schwarze Date: Wed, 30 Jun 2021 18:55:52 +0000 Subject: [PATCH] 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@ --- regress/bin/ksh/edit/emacs.sh | 5 +++-- 1 file 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 # Copyright (c) 2017 Ingo Schwarze @@ -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" -- 2.20.1