Date: Thu, 23 Mar 2017 10:09:59 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 205697] vi gets confused and corrupts file being edited Message-ID: <bug-205697-8-uq3SFjbCs7@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205697-8@https.bugs.freebsd.org/bugzilla/> References: <bug-205697-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205697 --- Comment #4 from Bjorn Robertsson <bjornr@iceland2000.com> --- (In reply to Michael Dexter from comment #3) I have used this patch for 11.0, (from https://lists.freebsd.org/pipermail/freebsd-bugs/2015-August/063464.html), = but note the couple more matches in the FreeBSD bug list: New | 202740 | vi/ex string substitution problem when there is m= =20 New | 202290 | /usr/bin/vi conversion error on valid character= =20=20=20 Index: contrib/nvi/common/encoding.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- contrib/nvi/common/encoding.c (revision 292832) +++ contrib/nvi/common/encoding.c (working copy) @@ -96,7 +96,7 @@ if (i >=3D nbytes) goto done; - if (buf[i] & 0x40) /* 10xxxxxx */ + if ((buf[i] & 0xc0) !=3D 0x80) /* 10xxxx= xx */ return -1; } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205697-8-uq3SFjbCs7>