Carl Youngblood
2006-Apr-30 01:38 UTC
[Ferret-talk] Locale not set error when trying to use C version in a rails app
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
Jens Kraemer
2006-May-02 07:07 UTC
[Ferret-talk] Locale not set error when trying to use C version in a rails app
On Sat, Apr 29, 2006 at 07:38:23PM -0600, Carl Youngblood 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 kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
Carl Youngblood
2006-May-02 19:42 UTC
[Ferret-talk] Locale not set error when trying to use C version in a rails app
Thanks. I tried that after an online search (before receiving your response) and it worked. On 5/2/06, Jens Kraemer <kraemer at webit.de> wrote:> On Sat, Apr 29, 2006 at 07:38:23PM -0600, Carl Youngblood 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 kraemer at webit.de > Schnorrstra?e 76 Tel +49 351 46766 0 > D-01069 Dresden Fax +49 351 46766 66 > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk >
Jan Prill
2006-May-13 14:59 UTC
[Ferret-talk] Locale not set error when trying to use C version in a r
Carl Youngblood 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, > CarlHi, 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 -- Posted via http://www.ruby-forum.com/.