Date: Wed, 17 Aug 2016 09:20:13 +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-aVKUTNSmwv@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 Alexander Klein <alexander.klein@physiologie.med.uni-giessen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexander.klein@physiologie | |.med.uni-giessen.de --- Comment #2 from Alexander Klein <alexander.klein@physiologie.med.uni-gi= essen.de> --- I see something similar in 10.3-RELEASE-p7 after playing around with Greek Unicode characters in zsh. I have the following line in my histfile, which contains a few Greek characters at the beginning, then the 0xb1, which I do= n't remember how to type, and then only ASCII-characters. % sed -n -e 837p histfile | od -c 0000000 =CF=81 ** =CE=B8 ** =CE=B8 ** =CF=83 ** 261 = g h f g 0000020 \n=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 0000021 % sed -n -e 837p histfile | hexdump -C 00000000 cf 81 ce b8 ce b8 cf 83 b1 20 20 20 67 68 66 67 |......... gh= fg| 00000010 0a |.| 00000011 When writing the file, vi truncates it right at this point. --=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-aVKUTNSmwv>