From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 13 07:40:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86E7316A421 for ; Sun, 13 Jan 2008 07:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8FEF113C461 for ; Sun, 13 Jan 2008 07:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0D7e0gM062095 for ; Sun, 13 Jan 2008 07:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0D7e06q062094; Sun, 13 Jan 2008 07:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 13 Jan 2008 07:40:00 GMT Resent-Message-Id: <200801130740.m0D7e06q062094@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, peter.schuller@infidyne.com Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90DA816A417 for ; Sun, 13 Jan 2008 07:32:49 +0000 (UTC) (envelope-from scode@hyperion.scode.org) Received: from hyperion.scode.org (hyperion.scode.org [85.17.42.115]) by mx1.freebsd.org (Postfix) with ESMTP id 787B013C4D5 for ; Sun, 13 Jan 2008 07:32:49 +0000 (UTC) (envelope-from scode@hyperion.scode.org) Received: by hyperion.scode.org (Postfix, from userid 1001) id D9ACD23C424; Sun, 13 Jan 2008 08:32:47 +0100 (CET) Message-Id: <20080113073247.D9ACD23C424@hyperion.scode.org> Date: Sun, 13 Jan 2008 08:32:47 +0100 (CET) From: peter.schuller@infidyne.com To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: garga@FreeBSD.org Subject: ports/119619: [patch] net-im/jabber-pyicq broken with utf-8 decoding errors X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: peter.schuller@infidyne.com List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 07:40:01 -0000 >Number: 119619 >Category: ports >Synopsis: [patch] net-im/jabber-pyicq broken with utf-8 decoding errors >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 13 07:40:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: peter.schuller@infidyne.com >Release: FreeBSD 6.2-RELEASE-p8 i386 >Organization: >Environment: System: FreeBSD hyperion.scode.org 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Fri Oct 19 05:50:09 CEST 2007 scode@hyperion.scode.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: After an upgrade to current versions of ports, ICQ presence code fails with: exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0x97 in position 19: unexpected code byte There are several issues open that describe this upstream. This patch applies the change suggested here (and bumps PORTREVISION): http://code.google.com/p/pyicqt/issues/detail?id=79 >How-To-Repeat: >Fix: ===> Generating patch ===> Viewing diff with more diff -ruN --exclude=CVS /usr/ports/net-im/jabber-pyicq.orig/Makefile /usr/ports/net-im/jabber-pyicq/Makefile --- /usr/ports/net-im/jabber-pyicq.orig/Makefile 2007-06-15 22:57:18.000000000 +0200 +++ /usr/ports/net-im/jabber-pyicq/Makefile 2008-01-13 08:25:44.801860827 +0100 @@ -6,6 +6,7 @@ PORTNAME= pyicq PORTVERSION= 0.8a +PORTREVISION= 1 CATEGORIES= net-im MASTER_SITES= http://www.blathersource.org/download.php/pyicq-t/ PKGNAMEPREFIX= jabber- diff -ruN --exclude=CVS /usr/ports/net-im/jabber-pyicq.orig/files/patch-src_legacy_icqt.py /usr/ports/net-im/jabber-pyicq/files/patch-src_legacy_icqt.py --- /usr/ports/net-im/jabber-pyicq.orig/files/patch-src_legacy_icqt.py 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/net-im/jabber-pyicq/files/patch-src_legacy_icqt.py 2008-01-13 08:22:00.559630072 +0100 @@ -0,0 +1,12 @@ +--- src/legacy/icqt.py.orig 2008-01-09 04:58:42.000000000 +0100 ++++ src/legacy/icqt.py 2008-01-13 08:06:51.411126927 +0100 +@@ -327,7 +327,8 @@ + status = msg[0] + ": " + status + + status = status.decode(charset, 'replace') +- LogEvent(INFO, self.session.jabberID, "Away (%s, %s) message %s" % (charset, msg[0], status)) ++ utfmsg = unicode(msg[0], errors='replace') ++ LogEvent(INFO, self.session.jabberID, "Away (%s, %s) message %s" % (charset, utfmsg[0], status)) + + if status == "Away" or status=="I am currently away from the computer." or status=="I am away from my computer right now.": + status = "" >Release-Note: >Audit-Trail: >Unformatted: