Comment 4 for bug 1476358

Revision history for this message
Omadas (bsperger) wrote :

Here is the terminal output of '$ catfish' :

Traceback (most recent call last):
  File "/usr/share/catfish/bin/catfish.py", line 44, in <module>
    catfish.main()
  File "/usr/share/catfish/catfish/__init__.py", line 73, in main
    window = CatfishWindow.CatfishWindow()
  File "/usr/share/catfish/catfish_lib/Window.py", line 49, in __new__
    new_object.finish_initializing(builder)
  File "/usr/share/catfish/catfish/CatfishWindow.py", line 260, in finish_initializing
    self.settings = CatfishSettings.CatfishSettings()
  File "/usr/share/catfish/catfish_lib/CatfishSettings.py", line 37, in __init__
    self.read()
  File "/usr/share/catfish/catfish_lib/CatfishSettings.py", line 57, in read
    for line in open(self.settings_file):
  File "/usr/lib/python3.4/codecs.py", line 319, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 4: invalid continuation byte

It is that last three lines that look like the fix, but i am not a programmer. Any idea on the code to replace the line?

Here is the line: (result, consumed) = self._buffer_decode(data, self.errors, final)

To verify, output of '$ locale':
$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=