Fix unicode in change messages
Urwid encodes the input field according to the encoding of the label, so setting the label to be u'unicode' causes the text to be returned as unicode. Change-Id: Id862bd78e5d505ae071e11a2b0cdf5c174a6efcc
This commit is contained in:
parent
6641793ff3
commit
aac0e232cc
@ -170,7 +170,7 @@ class ReviewDialog(urwid.WidgetWrap, mywid.LineBoxTitlePropertyMixin):
|
||||
m = revision.getDraftMessage()
|
||||
if m:
|
||||
message = m.message
|
||||
self.message = mywid.MyEdit("Message: \n", edit_text=message,
|
||||
self.message = mywid.MyEdit(u"Message: \n", edit_text=message,
|
||||
multiline=True, ring=app.ring)
|
||||
rows.append(self.message)
|
||||
rows.append(urwid.Divider())
|
||||
|
Loading…
x
Reference in New Issue
Block a user