Package: python-enchant
Version: 1.4.2-3
Severity: normal
Tags: patch

Short program to trigger this bug:
$ cat ./show-bug.py 
#! /usr/bin/env python
# -*- coding: utf-8 -*-

from enchant.checker import SpellChecker

checker = SpellChecker(u"fi_FI")
checker.add_to_personal(u"someword")

The method name in file /usr/share/pyshared/enchant/checker/__init__.py
is wrong, instead of self.dict.add_to_personal(word) it should be
self.dict.add(word).

This bug is fixed in upstream current version (which seems to be for
Python 3.0). 
http://github.com/rfk/pyenchant/blob/474ce027be22abd624185f64ecc547dfd0d21a27/enchant/checker/__init__.py



-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-enchant depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libenchant1c2a                1.4.2-3.3  a wrapper library for various spel
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-central                0.6.8      register and build utility for Pyt

python-enchant recommends no packages.

Versions of packages python-enchant suggests:
ii  python-gobject               2.14.2-2    Python bindings for the GObject li
ii  python-gtk2                  2.12.1-6    Python bindings for the GTK+ widge
ii  python-wxgtk2.6              2.6.3.2.2-3 wxWidgets Cross-platform C++ GUI t
ii  python-wxgtk2.8              2.8.7.1-1.1 wxWidgets Cross-platform C++ GUI t

-- no debconf information
*** original__init__.py	2009-09-09 18:02:21.000000000 +0300
--- __init__.py		2009-09-09 18:02:49.000000000 +0300
***************
*** 284,290 ****
          """
	            if word is None:
		                  word = self.word
				  !         self.dict.add_to_personal(word)
				        
					      def suggest(self,word=None):
					                """Return
suggested spellings for the given word.
--- 284,290 ----
          """
	            if word is None:
		                  word = self.word
				  !         self.dict.add(word)
				        
					      def suggest(self,word=None):
					                """Return
suggested spellings for the given word.

Reply via email to