Re: [cvs] bogofilter/src maint.c,1.61,1.62

David Relson <[email protected]>
Newsgroups gmane.mail.bogofilter.devel
Organization Osage Software Systems, Inc.
Message-ID <[email protected]>
On Sat, 25 Jun 2005 15:43:06 +0200
Matthias Andree wrote:

> David Relson <[email protected]> writes:
> 
> > Update of /cvsroot/bogofilter/bogofilter/src
> > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27791
> >
> > Modified Files:
> > 	maint.c 
> > Log Message:
> > Fix problem in converting raw to utf-8.
> 
> Whatever this is trying to do, it breaks a couple of tests.  Besides
> that, there is no function or mapping from "unknown" or "raw" to UTF-8,
> so this cannot ever work.

The change to maint.c can only affect t.encoding.  

You're right, calling iconv_open( "raw", "utf-8" ) won't work.  When I
looked at the code, converting from E_RAW to E_UNICODE runs the following:

  iconv_open( charset_default, "UTF-8" )

Since charset_default has value "iso-8859-1", this is what we want.

I've fixed t.maint so the counts are correct and have applied a band-
aid (temp fix) to t.nonascii.replace.  It appears that ta_commit() is
not returning OK during t.nonascii.replace and that seems wrong.  I've
got family duties, hence will dig further later.

David

_______________________________________________
Bogofilter-dev mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.