https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6435

--- Comment #3 from Nico Prenzel <[email protected]> 2010-05-26 
09:02:05 EDT ---
(In reply to comment #2)
> (In reply to comment #0)
> > system locale:
> > $ LANG=de_DE.UTF-8 locale -k LC_NUMERIC LC_MONETARY | grep decimal_point
> Setting LANG here might influence the result, in particular if LC_NUMERIC is
> unset.
I've pasted the wrong command here.
The following 'locale' is the originally one.
> What does a plain 'locale' return for LC_NUMERIC, LC_ALL and LANG?
~# locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=


> Also, any chance your spamd init script sets or changes locale settings?
I've searched after this but I've not found any locale depended settings. I do
use the init scripts provided with debian.

> Likewise, any specific locale settings for MySQL?
I don't think the locale setting could influence the behaviour as the MySQL
column is defined as text. But this depends on where the text is converted to a
number, I think.
My SpamAsssassin's local.cf also list the following select statement. So, I
think the required_hits (here the value contains the number) is treated as text
and is then converted by perl to a floating point number:
user_scores_sql_custom_query     SELECT preference, value FROM _TABLE_ WHERE
username = _USERNAME_ OR username = '@GLOBAL' ORDER BY username ASC

Any more hints?

Thanks
NicoP.

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to