Gufw doesn't launch on debian 10

Bug #1742719 reported by florentbr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Confirmed
Low
costales

Bug Description

== Configuration
Linux Debian 10, Gufw 17.04.1

== Description
Gufw doesn't start when the application is launched manually.

When launched via the terminal, I get this error:

 florent@KTYHJE:~$ gufw

 (gufw.py:2219): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.

 (process:2238): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.
 Traceback (most recent call last):
   File "/usr/share/gufw/gufw/gufw.py", line 30, in <module>
     gufw = Gufw(controler.get_frontend())
   File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 81, in __init__
     self.winadd = Add(self)
   File "/usr/share/gufw/gufw/gufw/view/add.py", line 36, in __init__
     self.apps = AppProfiles()
   File "/usr/share/gufw/gufw/gufw/view/add.py", line 492, in __init__
     self.all_apps = self._load_from_files()
   File "/usr/share/gufw/gufw/gufw/view/add.py", line 499, in _load_from_files
     cfg.read(glob.glob('*.*'))
   File "/usr/lib/python3.6/configparser.py", line 697, in read
     self._read(fp, filename)
   File "/usr/lib/python3.6/configparser.py", line 1015, in _read
     for lineno, line in enumerate(fp, start=1):
   File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
     return codecs.ascii_decode(input, self.errors)[0]
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 333: ordinal not in range(128)

== Fix

The issue is located in `/usr/share/gufw/gufw/gufw/view/add.py` line 499.
I forced the encoding to utf-8, which seems to fix the error:

 499c499
 < cfg.read(glob.glob('*.*'))
 ---
 > cfg.read(glob.glob('*.*'), 'utf-8')

costales (costales)
Changed in gui-ufw:
milestone: none → 18.10
assignee: nobody → costales (costales)
status: New → Confirmed
importance: Undecided → Wishlist
importance: Wishlist → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.