Jens Kraemer
2006-Sep-19 18:38 UTC
[Ferret-talk] strange acts_as_ferret bug in my enviorment
Bouncing this to the list since mail to the original sender doesn''t
seem
to get through - hope he reads here...
short intro to the problem - SQL queries get localized ('',''
instead of
''.'' as decimal separator) when having aaf in vendor/plugins...
Hi!
On Tue, Sep 19, 2006 at 06:39:35PM +0200, admin wrote:
[..]> When I check activerecord logfiles I see that WITH acts_as_ferret
> installed I have
> ---
> `unit_weight` = 50,0
> ---
>
> and Without acts_as_ferret I get:
> ---
> `unit_weight` = 50.0
> ---
>
> One has "," -- the other has ".".
strange, I once had the same problem with strange Javascript errors,
where some duration of an effect had a '','' instead of a
''.''. I solved
this by explicitly setting
ENV[''LC_NUMERIC''] = ''en_US.UTF-8''
in environment.rb
however I doubt acts_as_ferret is the problem, it might be Ferret in
general. to check this, you could just
require ''ferret''
in environment.rb, with aaf removed from vendor/plugins.
Ferret indeed does something with locales, it at least looks at the
environment to determine what analyzer to use...
What does your system environment look like, i.e. what gives calling
`locale` in a terminal as the user your server runs with ?
cheers,
Jens
--
Jens Kr?mer
jk at jkraemer.net
