Leafpad stops rendering characters once null character is encountered
Here I have a log file that contains data written to a unix pipe:
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.
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