Comment 0 for bug 29304

Revision history for this message
Aku Kotkavuo (aku) wrote :

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 other machine which is supposed to have same setup this happens only when LC_CTYPE is set to some variant of UTF-8, in other words only after "export LC_CTYPE=en_US.UTF-8" and then trying to open. Additionally, on this other machine even empty .sh files crash gedit. Both of the machines are running Breezy.

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.