Forum: Ferret Query with special characters crashes under Windows XP

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cc45ab5ae1bc22c3dd7d72bd5f880a66?d=identicon&s=25 Star Burger (starburger)
on 2007-07-11 12:27
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@euro'
  ENV['LC_TIME'] = 'C'
  require 'acts_as_ferret'

What am I doing wrong?

Thanks for your help,

Starburger
C9dd93aa135988cabf9183d3210665ca?d=identicon&s=25 Jens Kraemer (Guest)
on 2007-07-11 12:33
(Received via mailing list)
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:
>
>
> Starburger
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> Ferret-talk@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@webit.de | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
Cc45ab5ae1bc22c3dd7d72bd5f880a66?d=identicon&s=25 Star Burger (starburger)
on 2007-07-11 12:39
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
C9dd93aa135988cabf9183d3210665ca?d=identicon&s=25 Jens Kraemer (Guest)
on 2007-07-11 12:42
(Received via mailing list)
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@webit.de | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
Cc45ab5ae1bc22c3dd7d72bd5f880a66?d=identicon&s=25 Star Burger (starburger)
on 2007-07-19 16:12
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
>
>
This topic is locked and can not be replied to.