Package: python-gnome2-extras
Version: 2.10.2-1
Severity: normal

The following code causes python to segfault:

import gtkspell
import gtk
text_view = gtk.TextView()
spell = gtkspell.Spell(text_view)
spell.set_language(None)

On a related note, is there a recommended method for determining the
locale from the system? Additionally, how should the situation where
there is no default language be dealt with?

The following can lead to the above situation when no default language
is set in the system. How do you suggest this be handled?

import locale
import gtk
import gtkspell
locale.setlocale(locale.LC_ALL,'C')
locale.setlocale(locale.LC_ALL,'')
text_view = gtk.TextView()
spell = gtkspell.Spell(text_view)
lang = locale.getlocale()[0]
spell.set_language(lang)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages python-gnome2-extras depends on:
ii  python                        2.3.5-3    An interactive high-level object-o
ii  python2.3-gnome2-extras       2.10.2-1   Python bindings for the GNOME desk

python-gnome2-extras recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to