gedit snippets plugin not working for encodings other than UTF-8

view story

http://askubuntu.com – I just ran into a problem with the snippets plugin of gedit 3.4.1 running on Ubuntu 12.04. The problem is that the snippets plugin stops working (i. e., doesn't react to keyboard shortcuts and tab-completion) when a file has an encoding other than UTF-8, e. g. ISO-8859-1. In that case, the snippets plugin doesn't work any more and the error output on the console states: Traceback (most recent call last): File "/usr/lib/gedit/plugins/snippets/library.py", line 678, in accelerator_activated ret = cb(group, obj, keyval, mod) File "/usr/lib/gedit/plugins/snippets/windowactivatable.py", (HowTos)