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

Reply via email to