[Bug 205697] vi gets confused and corrupts file being edited

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 17 09:20:15 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205697

Alexander Klein <alexander.klein at physiologie.med.uni-giessen.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexander.klein at physiologie
                   |                            |.med.uni-giessen.de

--- Comment #2 from Alexander Klein <alexander.klein at physiologie.med.uni-giessen.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 don't
remember how to type, and then only ASCII-characters.

% sed -n -e 837p histfile | od -c
0000000    ρ  **   θ  **   θ  **   σ  ** 261               g   h   f   g
0000020   \n                                                            
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  |.........   ghfg|
00000010  0a                                                |.|
00000011

When writing the file, vi truncates it right at this point.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list