Deal with non utf8 status messages in change status message dialog

This commit is contained in:
Jean-Marie Traissard 2006-05-16 18:49:34 +00:00
parent 8bc7911a27
commit e58130611d
1 changed files with 2 additions and 0 deletions

View File

@ -349,6 +349,8 @@ class ChangeStatusMessageDialog:
msg_text = helpers.to_one_line(status_message_to_save_as_preset) msg_text = helpers.to_one_line(status_message_to_save_as_preset)
if not msg_name: # msg_name was '' if not msg_name: # msg_name was ''
msg_name = msg_text msg_name = msg_text
msg_name = msg_name.decode('utf-8')
msg_text = msg_text.decode('utf-8')
iter_ = self.message_liststore.append((msg_name,)) iter_ = self.message_liststore.append((msg_name,))
gajim.config.add_per('statusmsg', msg_name) gajim.config.add_per('statusmsg', msg_name)