changeset 530:6c07127ad2ed

primitivus: fixed edit bar's captions encoding (could cause crashes)
author Goffi <goffi@goffi.org>
date Sun, 28 Oct 2012 17:58:47 +0100
parents c18e0e108925
children 3bd8f84f920d
files frontends/src/primitivus/primitivus
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus	Mon Oct 22 00:10:21 2012 +0200
+++ b/frontends/src/primitivus/primitivus	Sun Oct 28 17:58:47 2012 +0100
@@ -215,9 +215,9 @@
         #self.center_part = urwid.Columns([('weight',2,self.contact_list),('weight',8,Chat('',self))])
         self.center_part = urwid.Columns([('weight',2,self.contact_list), ('weight',8,urwid.Filler(urwid.Text('')))])
 
-        modes = {None: ('NORMAL', ''),
-                 'i': ('INSERTION','> '),
-                 ':': ('COMMAND',':')}
+        modes = {None: ('NORMAL', u''),
+                 'i': ('INSERTION', u'> '),
+                 ':': ('COMMAND', u':')} #XXX: captions *MUST* be unicode
         self.editBar = sat_widgets.ModalEdit(modes)
         self.editBar.setCompletionMethod(self._text_completion)
         urwid.connect_signal(self.editBar,'click',self.onTextEntered)