Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leafpad stops rendering characters once null character is encountered #19

Open
relma2 opened this issue Jun 1, 2024 · 1 comment
Open

Comments

@relma2
Copy link

relma2 commented Jun 1, 2024

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.

@tarot231
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants