summaryrefslogtreecommitdiff
path: root/net-im/gaim
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-07 20:00:40 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-07 20:00:40 +0000
commit806103504e777b62c22de78361f50accb1daf890 (patch)
tree798d4b96056b1fe51eca9130401cdb6c81006673 /net-im/gaim
parent- Fix more linebreaks (diff)
Add I18N conversion to IRC topic messages.
PR: 50675 Submitted by: Alexander Nedotsukov <bland@mail.ru>
Notes
Notes: svn path=/head/; revision=78544
Diffstat (limited to 'net-im/gaim')
-rw-r--r--net-im/gaim/Makefile1
-rw-r--r--net-im/gaim/files/patch-src_protocols_irc_irc.c35
2 files changed, 36 insertions, 0 deletions
diff --git a/net-im/gaim/Makefile b/net-im/gaim/Makefile
index 5c30d17b4b0d..ca79b5521af3 100644
--- a/net-im/gaim/Makefile
+++ b/net-im/gaim/Makefile
@@ -6,6 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.60
+PORTREVISION?= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net-im/gaim/files/patch-src_protocols_irc_irc.c b/net-im/gaim/files/patch-src_protocols_irc_irc.c
new file mode 100644
index 000000000000..e042b2e7a1e9
--- /dev/null
+++ b/net-im/gaim/files/patch-src_protocols_irc_irc.c
@@ -0,0 +1,35 @@
+--- src/protocols/irc/irc.c.orig Wed Mar 12 11:50:45 2003
++++ src/protocols/irc/irc.c Wed Mar 12 12:20:56 2003
+@@ -699,9 +699,11 @@
+
+ if ((c = irc_find_chat(gc, text))) {
+ char buf[IRC_BUF_LEN];
+- gaim_chat_set_topic(GAIM_CHAT(c), NULL, po);
++ char *utf8 = irc_recv_convert(gc, po);
++ gaim_chat_set_topic(GAIM_CHAT(c), NULL, utf8);
+ g_snprintf(buf, sizeof(buf), _("<B>%s has changed the topic to: %s</B>"),
+- text, po);
++ text, utf8);
++ g_free(utf8);
+
+ gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL));
+ }
+@@ -1616,12 +1618,14 @@
+ {
+ struct gaim_conversation *c = irc_find_chat(gc, word[3]);
+ char *topic = *word_eol[4] == ':' ? word_eol[4] + 1 : word_eol[4];
+- char buf[IRC_BUF_LEN];
+
+ if (c) {
+- gaim_chat_set_topic(GAIM_CHAT(c), nick, topic);
++ char buf[IRC_BUF_LEN];
++ char *utf8 = irc_recv_convert(gc, topic);
++ gaim_chat_set_topic(GAIM_CHAT(c), nick, utf8);
+ g_snprintf(buf, sizeof(buf),
+- _("<B>%s has changed the topic to: %s</B>"), nick, topic);
++ _("<B>%s has changed the topic to: %s</B>"), nick, utf8);
++ g_free(utf8);
+
+ gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL));
+ }
+