evan/raspell — Issue #4: [BUG] Segmentation fault with own dictonary
Author: raskhadafi
Created: 2011-12-05 10:15:10+00:00
State: open

Hi
I get an error with following output:

```
/Users/roman/dev/ruby/cyt/katalog/app/controllers/dossiers_controller.rb:189: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-darwin10.8.0]

Abort trap: 6
```

Here is the source code:
https://github.com/CyTeam/katalog/blob/master/app/controllers/dossiers_controller.rb#L189

```ruby
word = "32.3"
spell_checker = Aspell.new1({"dict-dir" => Rails.root.join('db', 'aspell').to_s, "lang"=>"kt", "encoding"=>"UTF-8"})
spell_checker.set_option("ignore-case", "true")
spell_checker.suggestion_mode = Aspell::NORMAL
suggestion = spell_checker.suggest(word).first
```
I also tried the same directly in the aspell interactive console and there was the return nothing.

Do you have any idea what may caus the segmentation fault?
greez
Roman