After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 305809 - gedit chokes on "binary" file
gedit chokes on "binary" file
Status: RESOLVED DUPLICATE of bug 156199
Product: gedit
Classification: Applications
Component: general
2.8.x
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2005-05-29 09:58 UTC by Eric
Modified: 2005-07-21 17:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
gedit refusing to open a partly binary file. (128.37 KB, image/png)
2005-05-29 09:59 UTC, Eric
Details
This is a data file that causes gedit to produce the error message. (658 bytes, video/mpeg)
2005-05-29 10:01 UTC, Eric
Details

Description Eric 2005-05-29 09:58:02 UTC
Please describe the problem:
When I try to open a file that's mostly text with some binary data, gedit
produces the error message:

Could not open the file "/home/eric/Projects/Gnu…ecoder/traffic/c07-c.dat"
because gedit has not been able to automatically detect the character coding.

Please, check that you are not trying to open a binary file and try again
selecting a character coding in the 'Open File...' (or 'Open Location') dialogue.

Steps to reproduce:
1. Open gedit.
2. Try to open a binary file.



Actual results:
gedit produces the error message pasted in the "description" area of this bug
report.

Expected results:
gedit should open the file. In place of unprintable characters, gedit should
display those little square boxes with four hex numbers inside of them that I
see in Firefox all the time, or some equivalent.

Does this happen every time?
Yes.

Other information:
Please see the attached screenshot and sample data file.
Comment 1 Eric 2005-05-29 09:59:30 UTC
Created attachment 46994 [details]
gedit refusing to open a partly binary file.
Comment 2 Eric 2005-05-29 10:01:00 UTC
Created attachment 46995 [details]
This is a data file that causes gedit to produce the error message.
Comment 3 Brent Smith (smitten) 2005-07-21 17:11:24 UTC

*** This bug has been marked as a duplicate of 156199 ***