Star Burger
2007-Jul-11 10:27 UTC
[Ferret-talk] Query with special characters crashes under Windows XP
Hi, Index queries with special characters (e.g. German Umlauts but also other European ones) make the Ruby process run for quite a long time and crash finally. I''m using Rails on Windows XP with Ferret 0.11.4_mswin_32. I could isolate the problem in the following simple controller action (so there''s no web browser form field involved): def test index = Ferret::I.new index << "Portim?o" p index.search "Portim?o" end The statement index.search "Portim?o" causes the crash. There is no entry in ferret_index.log or any other feedback. My renvironment contains the following: ENV[''LANG''] = ''de_DE.UTF-8 at euro'' ENV[''LC_TIME''] = ''C'' require ''acts_as_ferret'' What am I doing wrong? Thanks for your help, Starburger -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-Jul-11 10:32 UTC
[Ferret-talk] Query with special characters crashes under Windows XP
Hi! Afair this issue has come up a few times now, always on Windows machines... Is there some windows equivalent to unix locale settings that might be set wrong (i.e. to something not UTF8)? Jens On Wed, Jul 11, 2007 at 12:27:14PM +0200, Star Burger wrote:> Hi, > > Index queries with special characters (e.g. German Umlauts but also > other European ones) make the Ruby process run for quite a long time and > crash finally. > > I''m using Rails on Windows XP with Ferret 0.11.4_mswin_32. > > I could isolate the problem in the following simple controller action > (so there''s no web browser form field involved): > > def test > index = Ferret::I.new > index << "Portim?o" > p index.search "Portim?o" > end > > > The statement index.search "Portim?o" causes the crash. There is no > entry in ferret_index.log or any other feedback. > > > My renvironment contains the following: > > ENV[''LANG''] = ''de_DE.UTF-8 at euro'' > ENV[''LC_TIME''] = ''C'' > require ''acts_as_ferret'' > > What am I doing wrong? > > Thanks for your help, > > Starburger > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk-- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa
Star Burger
2007-Jul-11 10:39 UTC
[Ferret-talk] Query with special characters crashes under Windows XP
Jens Kraemer wrote:> Hi! > > Afair this issue has come up a few times now, always on Windows > machines...Is there a hope that this problem will be gone under Suse Linux? This will be the production env. Starburger -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-Jul-11 10:41 UTC
[Ferret-talk] Query with special characters crashes under Windows XP
On Wed, Jul 11, 2007 at 12:39:05PM +0200, Star Burger wrote:> Jens Kraemer wrote: > > Hi! > > > > Afair this issue has come up a few times now, always on Windows > > machines... > > Is there a hope that this problem will be gone under Suse Linux? This > will be the production env.Definitely. I don''t have one at hand but here (Ubuntu) your snippet caused no problem. Jens -- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa
Star Burger
2007-Jul-19 14:12 UTC
[Ferret-talk] Query with special characters crashes under Windows XP
Yeah! No problem with Suse 10. Jens Kraemer wrote:> > Definitely. I don''t have one at hand but here (Ubuntu) your snippet > caused no problem. > > Jens > >-- Posted via http://www.ruby-forum.com/.