Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2003 09:36:27 +0800 (CST)
From:      Cheng-Lung Sung <AlanSung@alansung.dragon2.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clsung@dragon2.net
Subject:   ports/46772: [PATCH] centericq MSN UTF-8 (fixed UTF-8 nickname)
Message-ID:  <200301050136.h051aRiU085751@alansung.dragon2.net>

next in thread | raw e-mail | index | archive | help

>Number:         46772
>Category:       ports
>Synopsis:       [PATCH] centericq MSN UTF-8 (fixed UTF-8 nickname)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 04 17:40:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Cheng-Lung Sung <clsung@dragon2.net>
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
NCTU CSIE FreeBSD Server
>Environment:
System: FreeBSD AlanSung.dragon2.net 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #2: Mon Nov 18 12:12:55 CST 2002 root@AlanSung.dragon2.net:/usr/obj/usr/src/sys/SungSung i386


gnu iconv library needed
>Description:
	centericq 4.9.0 add some new features, but still lacks MSN UTF8
	support, previous patch only fix message converting, this patch
	also fix nickname converting (utf8 -> string)
>How-To-Repeat:
	multibyte character nickname will cause incorrect screen display.
>Fix:


diff -ruN /usr/ports/net/centericq/files/patch-msnhook.cc /tmp/centericq/files/patch-msnhook.cc
--- /usr/ports/net/centericq/files/patch-msnhook.cc	Sat Dec 21 01:15:36 2002
+++ /tmp/centericq/files/patch-msnhook.cc	Sun Jan  5 02:05:04 2003
@@ -1,5 +1,5 @@
 --- src/hooks/msnhook.cc	Fri Dec 13 00:17:12 2002
-+++ src/hooks/msnhook.cc	Wed Dec 18 14:57:02 2002
++++ src/hooks/msnhook.cc	Sun Jan  5 02:02:44 2003
 @@ -29,6 +29,7 @@
  #include "accountmanager.h"
  #include "eventmanager.h"
@@ -18,6 +18,20 @@
  
      if(c)
      if(c->getstatus() != offline || !c->inlist()) {
+@@ -352,11 +354,11 @@
+ 
+ void msnhook::checkfriendly(icqcontact *c, const string friendlynick, bool forcefetch) {
+     string oldnick = c->getnick();
+-    string newnick = unmime(friendlynick);
++    string newnick = Utf8ToStr(unmime(friendlynick));
+ 
+     c->setnick(newnick);
+ 
+-    if(forcefetch || (oldnick != newnick && c->getdispnick() == oldnick) || oldnick.empty()) {
++    if(forcefetch || (oldnick != newnick && c->getdispnick() != newnick) || oldnick.empty()) {
+ 	c->setdispnick(newnick);
+ 	face.relaxedupdate();
+     }
 @@ -556,7 +558,8 @@
  
      mhook.checkinlist(ic);

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301050136.h051aRiU085751>