summaryrefslogtreecommitdiff
path: root/packages/opie-irc
diff options
context:
space:
mode:
authorMichael Krelin <hacker@klever.net>2007-07-08 17:01:13 +0000
committerMichael Krelin <hacker@klever.net>2007-07-08 17:01:13 +0000
commitd7520d399b96a7a501b97b5822c98d3f5d3af5b2 (patch)
treecbcc27b32caa865dfb570f66c5100bcd7d82057a /packages/opie-irc
parentd68432c42d21dcd9e6e9c046d4c592e06d72da71 (diff)
opie-irc: utf8-ize
Diffstat (limited to 'packages/opie-irc')
-rw-r--r--packages/opie-irc/files/.mtn2git_empty0
-rw-r--r--packages/opie-irc/files/utf8.patch23
-rw-r--r--packages/opie-irc/opie-irc_cvs.bb4
3 files changed, 26 insertions, 1 deletions
diff --git a/packages/opie-irc/files/.mtn2git_empty b/packages/opie-irc/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/opie-irc/files/.mtn2git_empty
diff --git a/packages/opie-irc/files/utf8.patch b/packages/opie-irc/files/utf8.patch
new file mode 100644
index 0000000000..cc562838a2
--- /dev/null
+++ b/packages/opie-irc/files/utf8.patch
@@ -0,0 +1,23 @@
+diff --git a/ircconnection.cpp b/ircconnection.cpp
+index 88e63f7..fb7e168 100644
+--- a/ircconnection.cpp
++++ b/ircconnection.cpp
+@@ -29,7 +29,8 @@ void IRCConnection::sendLine(QString line) {
+ while((line.right(1) == "\n") || (line.right(1) == "\r"))
+ line = line.left(line.length() - 1);
+ line.append("\r\n");
+- m_socket->writeBlock(line, line.length());
++ QCString uline = line.utf8();
++ m_socket->writeBlock(uline, uline.length());
+ }
+
+ void IRCConnection::sendCTCPReply(const QString &nickname, const QString &type, const QString &args) {
+@@ -77,7 +78,7 @@ void IRCConnection::login() {
+ /* Called when data arrives on the socket */
+ 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) {
+ /* Now autojoin all channels specified inside the server profile */
+ QStringList channels = QStringList::split(QChar(','), m_server->channels());
diff --git a/packages/opie-irc/opie-irc_cvs.bb b/packages/opie-irc/opie-irc_cvs.bb
index f1ad3901c2..f7704f5493 100644
--- a/packages/opie-irc/opie-irc_cvs.bb
+++ b/packages/opie-irc/opie-irc_cvs.bb
@@ -1,8 +1,10 @@
require ${PN}.inc
PV = "${OPIE_CVS_PV}"
+PR = "r1"
SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/net/opieirc \
${HANDHELDS_CVS};module=opie/help \
${HANDHELDS_CVS};module=opie/apps \
- ${HANDHELDS_CVS};module=opie/pics"
+ ${HANDHELDS_CVS};module=opie/pics \
+ file://utf8.patch;patch=1 "