Skip site navigation (1)Skip section navigation (2)
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/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205697

            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=20

Error: unable to retrieve line 7

The line could not be removed or edited.=20

This is nasty as it destroys the file being edited.

I recovered the file from backup, and I get=20

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 sho=
uld
never go confused, and simply switch locate to C with appropriate warning
message.

--=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>