summaryrefslogtreecommitdiff
path: root/src/idle-connection.c
diff options
context:
space:
mode:
authorDiane Trout <diane@ghic.org>2017-11-04 23:32:32 -0700
committerDiane Trout <diane@ghic.org>2017-11-04 23:32:32 -0700
commit0ce3a8fa2bd3f4e72358bb53ecd0acf8fe448483 (patch)
tree0ff1715f8e56f1b416967aaa59b6911baaa03137 /src/idle-connection.c
parent5a2510ddea8f165f0808a8841e1dca311c003e20 (diff)
downloadtelepathy-idle-0ce3a8fa2bd3f4e72358bb53ecd0acf8fe448483.tar.gz
Avoid errors from Python caused by the deliberatly invalid Unicode
Because stream.nick is Unicode when sendMessage combines the command, nick, and invalid utf8 python 2.7 ends up converting everything to Unicode. Since this test deliberately includes invalid Unicode, Python notices and throws an exception. In Python 3, network traffic is usually encoded as bytes. So I thought coercing the nick to bytes would be appropriate, and as bytes can contain anything including invalid Unicode, Python doesn't throw an exception.
Diffstat (limited to 'src/idle-connection.c')
0 files changed, 0 insertions, 0 deletions