Subject: pkg/25490: evolution 1.2.4 does not set correct charset for sent mail
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ljocha@ics.muni.cz>
List: pkgsrc-bugs
Date: 05/07/2004 15:24:10
>Number:         25490
>Category:       pkg
>Synopsis:       evolution 1.2.4 does not set correct charset for sent mail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 07 13:25:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ales Krenek
>Release:        NetBSD 2.0_BETA
>Organization:
Masaryk University
>Environment:
System: NetBSD hiram.ics.muni.cz 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Thu Apr 22 08:22:04 UTC 2004 autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/i386/OBJ/autobuild/netbsd-2-0/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
outgoing mail, even containing non US-ASCII characters is sent with 
wrong headers 

	Content-Type: text/plain (should include charset)
	Content-Transfer-Encoding: 7bit
	
This is caused by changed semantics of iconv(3) wrt. NetBSD 1.6.
>How-To-Repeat:
Send a mail containing non US-ASCII chars
>Fix:
*** composer/e-msg-composer.c.orig	Fri May  7 12:43:42 2004
--- composer/e-msg-composer.c	Fri May  7 15:10:48 2004
***************
*** 227,233 ****
  	} while (status == -1 && errno == E2BIG);
  	iconv_close (cd);
  	
! 	if (status == -1)
  		return -1;
  	
  	if (count == 0)
--- 227,233 ----
  	} while (status == -1 && errno == E2BIG);
  	iconv_close (cd);
  	
! 	if (status != 0)
  		return -1;
  	
  	if (count == 0)
>Release-Note:
>Audit-Trail:
>Unformatted: