Locale not set error when trying to use C version in a rails

I’m getting a locale not set error. Does anyone know how I should set
my locale in my rails environment so that ferret knows what to do?
Why isn’t this a problem in the ruby version of ferret?

Thanks,
Carl

Carl Y. wrote:

I’m getting a locale not set error. Does anyone know how I should set
my locale in my rails environment so that ferret knows what to do?
Why isn’t this a problem in the ruby version of ferret?

Thanks,
Carl

Hi, Carl,

have you had success in ruling out this issue?

While I was fiddling around with ferret 0.9.3 while testing for
http://ferret.davebalmain.com/trac/wiki/MyFirstBenchmark I had problems
with the set locale on a gentoo box.

This happened to be a problem of the c-analyzer to read documents with
special characters on my installation. The encoding was posix and I had
to change it to de_DE or us_US to index project gutenberg files. On
gentoo linux this was done with “locale -a” to check out the possible
locales and after that setting one of these locales by “export LANG =
de_DE”, “export LC_ALL = de_DE” and so on. Afterwards I changed the
locale of the whole system to Unicode by changing /etc/env.d/02locale.
This is on gentoo, you need to check out how it is on your distro.
ymmv…

Regards
Jan

On Sat, Apr 29, 2006 at 07:38:23PM -0600, Carl Y. wrote:

I’m getting a locale not set error. Does anyone know how I should set
my locale in my rails environment so that ferret knows what to do?

try setting ENV[‘LANG’]=‘en_US.UTF-8’ in your environment.rb. That
worked for me.

Why isn’t this a problem in the ruby version of ferret?

I have no idea…

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

Thanks. I tried that after an online search (before receiving your
response) and it worked.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs