[Spambayes] BUG: Input from LOCALE not used

Mark Hammond mhammond at skippinet.com.au
Sat Apr 19 13:27:16 EDT 2003


> This has definitely been reported before.  I thought that a bug was
> submitted and that Mark checked in a patch, but I can't find the bug
> anywhere on sf, and I can't find a fix in the check-in 
> archives either.
> (Am I imagining the whole thing??).
> 
> Anyway, Mark will probably get to this when he has a chance.  I
> *thought* that what happened was that spambayes set the locale to
> English within the plugin and that solved it.

Oops - that was sitting modified in my tree.  I just checked in a fix to
addin.py to fix this, although the same issue is almost certain to bite
pop3propxy users on that platform.  The core should include the fix I made,
IMO:

> # Set our locale to be English, so our config parser works OK
> # (This should almost certainly be done elsewhere, but as no one
> # else seems to have an opinion on where this is, here is as good
> # as any!
> import locale
> locale.setlocale(locale.LC_NUMERIC, "en")


Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2072 bytes
Desc: not available
Url : http://mail.python.org/pipermail/spambayes/attachments/20030419/f6eed906/winmail.bin


More information about the Spambayes mailing list