Merge lp:~gonzaw308/my-weather-indicator/my-weather-indicator into lp:my-weather-indicator

Proposed by Gonzalo
Status: Approved
Approved by: Lorenzo Carbonell
Approved revision: 212
Proposed branch: lp:~gonzaw308/my-weather-indicator/my-weather-indicator
Merge into: lp:my-weather-indicator
Diff against target: 12 lines (+1/-1)
1 file modified
src/comun.py (+1/-1)
To merge this branch: bzr merge lp:~gonzaw308/my-weather-indicator/my-weather-indicator
Reviewer Review Type Date Requested Status
Lorenzo Carbonell Approve
Review via email: mp+263614@code.launchpad.net

Description of the change

Hi.

I added a simple fix to the #1444809 bug that's been happening to me. It had a problem opening a utf-8 encoded file.

To post a comment you must log in.
Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) :
review: Approve

Unmerged revisions

212. By Gonzalo

#1444809 - Fixing encoding bug when opening a UTF-8 file

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/comun.py'
2--- src/comun.py 2014-06-29 19:43:35 +0000
3+++ src/comun.py 2015-07-02 03:50:45 +0000
4@@ -119,7 +119,7 @@
5 ICON = os.path.join(IMAGESDIR,'my-weather-indicator.png')
6 AUTOSTART = os.path.join(DATADIR,'my-weather-indicator-autostart.desktop')
7
8-f = open(CHANGELOG,'r')
9+f = open(CHANGELOG,'r', encoding = "utf-8")
10 line = f.readline()
11 f.close()
12 pos=line.find('(')

Subscribers

People subscribed via source and target branches

to status/vote changes: