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 `
github-comments@lists.geany.org