From owner-freebsd-gnome Mon Sep 16 13:10: 7 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59B9537B400 for ; Mon, 16 Sep 2002 13:10:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA8D943E4A for ; Mon, 16 Sep 2002 13:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8GKA3JU060396 for ; Mon, 16 Sep 2002 13:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8GKA3NO060395; Mon, 16 Sep 2002 13:10:03 -0700 (PDT) Date: Mon, 16 Sep 2002 13:10:03 -0700 (PDT) Message-Id: <200209162010.g8GKA3NO060395@freefall.freebsd.org> To: gnome@FreeBSD.org Cc: From: Joe Marcus Clarke Subject: Re: ports/42825: Pan breaks MIME charset headers (FreeBSD specific) Reply-To: Joe Marcus Clarke Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR ports/42825; it has been noted by GNATS. From: Joe Marcus Clarke To: freebsd-gnats-submit@FreeBSD.org, matthias.andree@web.de Cc: Subject: Re: ports/42825: Pan breaks MIME charset headers (FreeBSD specific) Date: 16 Sep 2002 16:08:44 -0400 Can you try the attached patch, and let me know if it works? Thanks. Joe --- gmime/gmime-charset.c.orig Mon Sep 16 16:07:29 2002 +++ gmime/gmime-charset.c Mon Sep 16 16:07:36 2002 @@ -69,7 +69,7 @@ * codeset is a character set or encoding identifier like * ISO-8859-1 or UTF-8. */ - char *codeset, *p; + char *codeset, *p, *tmp; codeset = strchr (locale, '.'); if (codeset) { @@ -77,6 +77,16 @@ /* ; is a hack for debian systems and / is a hack for Solaris systems */ for (p = codeset; *p && !strchr ("@;/", *p); p++); + + if (strstr(codeset, "iso") != NULL && + strlen(codeset) > 3) { + tmp = (char *)g_malloc(strlen(codeset) + 1); + strcpy(tmp, "iso"); + strcat(tmp, "-"); + strcat(tmp, (codeset + 3)); + codeset = tmp; + g_free(tmp); + } locale_charset = g_strndup (codeset, (unsigned) (p - codeset)); g_strdown (locale_charset); } else { -- Joe Marcus Clarke FreeBSD GNOME Team :: marcus@FreeBSD.org http://www.FreeBSD.org/gnome To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message