summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircconnection.cpp
authorerik <erik>2007-07-09 22:06:00 (UTC)
committer erik <erik>2007-07-09 22:06:00 (UTC)
commita91bbaee9eb419dc985d9f5c3689831c8aa75c1e (patch) (side-by-side diff)
treeba0da224a93f7af1a80a4bef3186edff8dc9483f /noncore/net/opieirc/ircconnection.cpp
parent1ec355e1cc016edd2e322ff7d57469feaa46474b (diff)
downloadopie-a91bbaee9eb419dc985d9f5c3689831c8aa75c1e.zip
opie-a91bbaee9eb419dc985d9f5c3689831c8aa75c1e.tar.gz
opie-a91bbaee9eb419dc985d9f5c3689831c8aa75c1e.tar.bz2
Fix for opie bug 1719. This should make opie-irc play nicer with utf-8.
Patches were culled from OE. Thanks to whoever the original patch author was.
Diffstat (limited to 'noncore/net/opieirc/ircconnection.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircconnection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/opieirc/ircconnection.cpp b/noncore/net/opieirc/ircconnection.cpp
index 88e63f7..fb7e168 100644
--- a/noncore/net/opieirc/ircconnection.cpp
+++ b/noncore/net/opieirc/ircconnection.cpp
@@ -31,3 +31,4 @@ void IRCConnection::sendLine(QString line) {
line.append("\r\n");
- m_socket->writeBlock(line, line.length());
+ QCString uline = line.utf8();
+ m_socket->writeBlock(uline, uline.length());
}
@@ -79,3 +80,3 @@ void IRCConnection::dataReady() {
while(m_socket->canReadLine()) {
- IRCMessage message(m_socket->readLine());
+ IRCMessage message(QString::fromUtf8(m_socket->readLine()));
if (!m_loggedIn && message.isNumerical() && message.commandNumber() == 1) {