bogofilter/src convert_unicode.c,1.5,1.6

David Relson relson at osagesoftware.com
Sat Jun 25 00:05:03 CEST 2005


On Fri, 24 Jun 2005 19:38:13 +0200
Stefan Bellon wrote:

> David Relson wrote:
> > On Mon, 20 Jun 2005 00:54:06 +0200
> > Matthias Andree wrote:
> > > David Relson <relson at users.sourceforge.net> writes:
> 
> > > > +	if (err == EINVAL) {
> > > > +	    /* error - use identity mapping */
> > > > +	    fprintf( stderr, "Conversion from '%s' to '%s' is not
> > > >                supported.\n", from_charset, to_charset );
> > > > +	    cd = iconv_open( "iso-8859-1", "iso-8859-1" );
> 
> [snip]
> 
> > Perhaps we'd do better if we disable translation when iconv_open()
> > rejects the character set ???
> 
> Sorry for jumping in so late, but I'd like to see a way to either
> disable that particular error message or write it into the log file
> instead. When running bogofilter unattended, this is the only error
> message ever I see on stderr, which is ... unexpected. I'd rather see
> it in the log file. Comments?

Hi Stefan,

You're not too late, at all !  In the newest code (in CVS) the message
appears only when DEBUG flags are set, specifically "-x I -vv".  It'll
be in 0.95.1.

For now, comment out the line..

Regards,

David




More information about the bogofilter-dev mailing list