Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you remember what version that issue happened on? Were you using unicode characters or a non-UTF8 encoding? That sounds like an annoying issue and it would be great to fix it.


This was in 2018, not sure which version. UTF-8 across the board.

I don't remember the details, unfortunately. I think there was a pattern to it, like they were control characters or something. But it silently inserted them, and they were not visible within the editor, but they were visible in nano/less/etc.


Did they just appear as space characters, or did they actually not take up any cells in the editor? Currently some non-displayable characters are rendered as spaces, which is not ideal. I will look into displaying non-displayable characters in a special way (perhaps as `^@`, similar to how Vim does it, or with �, which is meant for this purpose).


I think they were appended to the end of each line, so unfortunately that would make it non-obvious that something was there. If they were rendered as spaces that would explain not being able to see it. Displaying them as � would be an improvement.

Again, this was awhile ago, but I don't think they were single characters, it was a sequence of characters.


Is it possible that it was a matter of changing the line endings? Some applications can be quite sensitive to different line endings… sounds suspiciously like that?

https://en.m.wikipedia.org/wiki/Newline




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: