[Bug 1090492] [NEW] kde4libs-4.9.4/sonnet/plugins/hspell adds spell check language "Hebrew" to language list, even if hspell is not installed

Thomas Dreibholz dreibh at iem.uni-due.de
Fri Dec 14 17:53:04 UTC 2012


Public bug reported:

At least on a Kubuntu system with language support for English, Bokmål
and German, there is always also Hebrew as language in the spell
checker's language list. This can be reprocuded easily by just running
"kcmshell4 spellchecking" on such a system.

The problem is that kde4libs-4.9.4/sonnet/plugins/hspell produces a
library with has statically linked the libhspell (Hebrew spell checker
library). It is then installed as /usr/lib/kde4/kspell_hspell.so. This
library always adds "Hebrew" to the language list, regardless of an
existing installation of the corresponding hspell dictionary files.

The problem is in kspell_hspellclient.cpp:

QStringList HSpellClient::languages() const
{
    QStringList langs;
    langs.append( "he" );

    return langs;
}

There is no check whether libhspell successfully initializes. Instead,
the additional language is just added. The attached patch fixes the
problem, by just adding the necessary check. In this case, the spell
check functionality is only provided if hspell with its dictionaries is
actually installed.

** Affects: kde4libs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: hspell

** Patch added: "The patch fixing the problem"
   https://bugs.launchpad.net/bugs/1090492/+attachment/3460068/+files/sonnet.patch

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde4libs in Ubuntu.
https://bugs.launchpad.net/bugs/1090492

Title:
  kde4libs-4.9.4/sonnet/plugins/hspell adds spell check language
  "Hebrew" to language list, even if hspell is not installed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde4libs/+bug/1090492/+subscriptions




More information about the kubuntu-bugs mailing list