leafpad icon indicating copy to clipboard operation
leafpad copied to clipboard

Leafpad stops rendering characters once null character is encountered

Open relma2 opened this issue 1 year ago • 1 comments

Here I have a log file that contains data written to a unix pipe:

bridge.log

Leafpad renders up until "Wrote 49 bytes to unix pipe" and then stops rendering because it encounters a character that is an unrenderable hexadecimal value, the null character. Viewing the file on vim correctly renders the null character as ^@, the caret notation for the null character, and continues rendering the rest of the characters in the file.

Please render the null character as a box with "\00" inside, and continue rendering the rest of the file even with this character encountered.

relma2 avatar Jun 01 '24 13:06 relma2

The GTK (GLib) function is used to read the file, and the null character handling depends on it. https://docs.gtk.org/glib/func.file_get_contents.html

tarot231 avatar Jun 28 '24 20:06 tarot231