Date: Mon, 16 Sep 2002 13:10:03 -0700 (PDT) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: gnome@FreeBSD.org Subject: Re: ports/42825: Pan breaks MIME charset headers (FreeBSD specific) Message-ID: <200209162010.g8GKA3NO060395@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/42825; it has been noted by GNATS. From: Joe Marcus Clarke <marcus@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209162010.g8GKA3NO060395>