[Github-comments] [geany/geany] The nul character is interpreted as EOF on debian kde (#618)
hinneLinks
notifications at xxxxx
Mon May 11 08:56:11 UTC 2020
I usually just want to peak into binary files to look what readable strings are in there, I never write them.
In order to open them, I just trow away the NULL-Characters in a temporary file and open that one.
Maybe Geany could ask to open it - read only - without the NULL-Characters? Asking the user what to do would also solve #1966 imho.
Workaround (Ubuntu):
```
#!/bin/bash
# This script takes one parameter as input, replaces all NULL-Characters with "_"
# then saves that into a temporary file, open geany and delete that file directly
tempfile="$(mktemp)"
cat $1 | tr "\0" _ > $tempfile
geany $tempfile
rm $tempfile
```
Save it as `geany-null-safe.sh`and make it executable (`chmod +x geany-null-safe.sh`).
Use like this:
`./geany-null-safe.sh some-binary-file.pdf `
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/618#issuecomment-626568229
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200511/60ae3f29/attachment.htm>
More information about the Github-comments
mailing list