Date: Tue, 29 Dec 2015 15:35:49 +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@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205697 Bug ID: 205697 Summary: vi gets confused and corrupts file being edited Product: Base System Version: 10.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: heikki@suonsivu.net I was editing a file with vi, and got Error: ?!: Illegal byte sequence; ?!: WARNING: FILE TRUNCATED. After this, it refused to save the file. In middle of the file there was ~ one one line. However, any attempt to edit that line caused error Error: unable to retrieve line 7 The line could not be removed or edited. This is nasty as it destroys the file being edited. I recovered the file from backup, and I get paypal: unmodified: line 1; Conversion error on line 7 I might have missed that error when starting to edit. This is plain text file. If vi has some magic for UTF8 or whatever, it should never go confused, and simply switch locate to C with appropriate warning message. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205697-8>
