Spell module: fix check of UTF8 strings in pyaspell

This commit is contained in:
Némunaire 2012-11-24 22:30:46 +01:00
commit 9495e43cc0
2 changed files with 19 additions and 17 deletions

View file

@ -45,6 +45,8 @@ def cmd_spell(msg):
def check_spell(word, lang='fr'):
a = Aspell(("lang", lang))
if a.check(word):
return True
ret = True
else:
return a.suggest(word)
ret = a.suggest(word)
a.close()
return ret