UnicodeDecodeError using Python 3.4

Bug #1444809 reported by Gonzalo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
Undecided
Gonzalo

Bug Description

Hi
I'm using Python 3.4 in Ubuntu 14.04, and when I start my-weather-indicator I get this error:

Traceback (most recent call last):
  File "./my-weather-indicator", line 43, in <module>
    import comun
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/comun.py", line 123, in <module>
    line = f.readline()
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4209: ordinal not in range(128)

From what I've gathered, this is a problem with how Python 3 does the decoding of the file when opening with default options. My files and locale enconding are in UTF-8, yet it seems to be trying to open them with ascii.

Gonzalo (gonzaw308)
Changed in my-weather-indicator:
status: New → In Progress
assignee: nobody → Gonzalo (gonzaw308)
Gonzalo (gonzaw308)
Changed in my-weather-indicator:
status: In Progress → Fix Committed
Changed in my-weather-indicator:
status: Fix Committed → Fix Released
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.