[gnome-clocks] Encode to utf-8 the alarm names loaded from the json file



commit fd612ef60b528c875693c7aac906df082eaa7f4a
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Sep 10 19:13:41 2012 +0200

    Encode to utf-8 the alarm names loaded from the json file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683667

 gnomeclocks/alarm.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index c28a415..07a21b6 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -57,7 +57,7 @@ class AlarmsStorage():
                 except:
                     # skip alarms which do not have the required fields
                     continue
-                alarm = AlarmItem(n, h, m, d)
+                alarm = AlarmItem(n.encode("utf-8"), h, m, d)
                 alarms.append(alarm)
         except IOError as e:
             if e.errno == errno.ENOENT:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]