Crash on Cyrillic message processing
Bug description
Gajim crashes whenever I try to send a message in Bulgarian. I'm using the built-in Bulgarian Traditional Phonetic keyboard in Win 7 and system locale is set to Bulgarian (Cyrillic).
Problem also occurs when Cyrillic messages are fetched from the server (Prosody 0.10 latest trunk) and Gajim tries to visualize them in the chat window.
No issues experienced in Ubuntu with the same server and message content.
Steps to reproduce
Type a few characters in Cyrillic and send them to a contact. Error on my side is:
Traceback (most recent call last):
File "src\roster_window.py", line 4156, in on_roster_treeview_row_activated
File "src\roster_window.py", line 4149, in on_row_activated
File "src\gui_interface.py", line 2259, in on_open_chat_window
File "src\gui_interface.py", line 2200, in new_chat
File "src\chat_control.py", line 1679, in __init__
File "src\chat_control.py", line 3040, in restore_conversation
File "src\chat_control.py", line 934, in print_conversation_line
File "src\conversation_textview.py", line 1297, in print_conversation_line
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf7 in position 10: invalid start byte
Software versions
OS version:
Win 7 SP1 all hotfixes installed
GTK version:
whatever is shipped with Gajim 0.16.4-2 from the official website
PyGTK version:
same here