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:
James E. Blair 2016-05-03 11:38:23 -07:00
parent 6641793ff3
commit aac0e232cc
1 changed files with 1 additions and 1 deletions

View File

@ -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())