GNOME Bugzilla – Bug 721632
Stop reading binary files after, say, 1kB
Last modified: 2017-04-25 09:25:20 UTC
Hi, it happens that I accidently open binary files in gedit that may be rather huge, e.g. "gedit *" in a source directory that is not yet cleaned up and still contains object files. It then takes ages for gedit to process these files. It finishes with showing me an error message that the file it just opened contains illegal symbols and that editing it might not turn out as expected. This information, however, is already known after reading a few bytes, say 1kB, of that file. I think it would be better if gedit stopped reading it and asking me to continue than attempting to read it in as a whole, blocking the UI and then giving me the error message. - Fabian
It should at least be possible to cancel a file loading, see bug #699839 for that. But I agree, it would also be nice to detect binary files, when there are lots of invalid characters.
*** Bug 669880 has been marked as a duplicate of this bug. ***
*** Bug 743463 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 781375 ***