[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: buster, ekiga.



On Wed, Jul 24, 2019 at 11:02:33PM +0200, tomas@tuxteam.de wrote:
> On Wed, Jul 24, 2019 at 03:49:38PM -0500, David Wright wrote:
> 
> [...]
> 
> > If I read a file that has an embedded NUL into an editor, I would
> > consider it suboptimal if the editor ceased reading any more of the
> > file when it hit a NUL.
> 
> Vim and Emacs both qualify. Are there other editors? (yes, a bit
> tongue-in-cheek ;-P

I was curious, so I generated a "text" file with a NUL in it, and opened
it in nano.  To my surprise, nano actually handled it extremely well.
The NUL was rendered as the two characters ^@ in the terminal, and
the cursor only "rested" on one of the two characters when moving
left-to-right across that line.  Ctrl-D (with the cursor on one of the ^@
characters) removed both characters from the terminal display, and after
saving, the NUL byte was gone from the file.

It was basically identical to how vim handles it, just with different
key bindings.


Reply to: