gedit crashes when opening files from terminal (syntax highlighting bug?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit |
Invalid
|
Undecided
|
Unassigned | ||
gedit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I stumbled upon a bug in gedit while trying to open a .py file from terminal (with "gedit filename") - it simply crashes. Further testing revealed that gedit crashes with every .py and .pl file I tried to open from terminal, even empty files with those filename extensions (created with touch). However, empty .cpp and .c files open without crash.
On another machine which is supposed to have the same setup this happens only when LC_CTYPE is set to some variant of UTF-8, in other words only after "export LC_CTYPE=
All of the files in question open if I first start up gedit and then try to open them from menu. I can also open them from terminal without any problems if I already have gedit running.
Also, some (but not all) of the files I tested with opened without problems after removing filename extensions. Could this be related to syntax highlighting?
I am using UTF-8, but this happens even in files without any special characters (like empty files). My gedit version is 2.12.1-0ubuntu1.
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e . I have classified this bug as a bug in gedit. /wiki.ubuntu. com/ReportingBu gs.
For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https:/