[cvs] bogofilter/src maint.c,1.61,1.62
David Relson
relson at osagesoftware.com
Sat Jun 25 16:53:34 CEST 2005
On Sat, 25 Jun 2005 15:43:06 +0200
Matthias Andree wrote:
> David Relson <relson at users.sourceforge.net> 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
More information about the bogofilter-dev
mailing list