[From nobody Sat May 16 21:59:04 2026
Received: (at submit) by bugs.debian.org; 13 Sep 2009 08:47:13 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
 (2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 106; hammy, 149; neutral, 110; spammy,
 2. spammytokens:1.000-+--woody, 0.997-1--intentions
 hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug,
 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--H*x:3.48
X-Spam-Status: No, score=-12.3 required=4.0 tests=AWL,BAYES_00,FOURLA,
 FROMDEVELOPER,HAS_PACKAGE,IMPRONONCABLE_2,XMAILER_REPORTBUG autolearn=ham
 version=3.2.3-bugs.debian.org_2005_01_02
Return-path: &lt;tale@debian.org&gt;
Received: from tulikuusama.dnainternet.net ([83.102.40.132])
 by rietz.debian.org with esmtp (Exim 4.63)
 (envelope-from &lt;tale@debian.org&gt;) id 1Mmkjp-0006wJ-3S
 for submit@bugs.debian.org; Sun, 13 Sep 2009 08:47:13 +0000
Received: from localhost (localhost [127.0.0.1])
 by tulikuusama.dnainternet.net (Postfix) with ESMTP id 17E732C520;
 Sun, 13 Sep 2009 11:47:06 +0300 (EEST)
X-Virus-Scanned: DNA Postiturva at dnainternet.net
Received: from tulikuusama.dnainternet.net ([83.102.40.132])
 by localhost (tulikuusama.dnainternet.net [127.0.0.1]) (amavisd-new,
 port 10041)
 with ESMTP id Cixha06pX+-5; Sun, 13 Sep 2009 11:47:05 +0300 (EEST)
Received: from oliivipuu.dnainternet.net (oliivipuu.dnainternet.net
 [83.102.40.215])
 by tulikuusama.dnainternet.net (Postfix) with ESMTP id D6E8E2C50C;
 Sun, 13 Sep 2009 11:47:05 +0300 (EEST)
Received: from alice.koti.taleman.fi
 (84-253-237-195.satp.customers.dnainternet.fi [84.253.237.195])
 by oliivipuu.dnainternet.net (Postfix) with ESMTP id AAA392BAEC;
 Sun, 13 Sep 2009 11:47:05 +0300 (EEST)
MIME-Version: 1.0
Content-Type: text/plain; charset=&quot;UTF-8&quot;
From: Tapio Lehtonen &lt;tale@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libenchant1c2a: Command enchant, problems with
Reply-To: tapio.lehtonen@IKI.FI
Message-ID: &lt;20090913084705.27405.53091.reportbug@alice.koti.taleman.fi&gt;
X-Mailer: reportbug 3.48
Date: Sun, 13 Sep 2009 11:47:05 +0300
X-Debbugs-Cc: 
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org

Package: libenchant1c2a
Version: 1.4.2-3.3
Severity: normal

Man page for enchant does not mention option -d (nor -h).

$ enchant -h
Usage: enchant [options] -a|-d dict|-l|-L|-m|-v[v]|&lt;file&gt;
       -a lists alternatives.
       -d dict uses dictionary &lt;dict&gt;.
       -l lists misspellings.
       -m is ignored.
       -L displays line numbers.
       -v displays program version.

Furhermore enchant -d fi and -d fi_FI do not produce the same result.
Looks like -d fi works as expected, -d fi_FI makes strange results.

In the following test material first two lines are Finnish, rest is
English and I expect enchant -l to report those english words.

$ cat test-material-for-enchant-2.txt=20
Hallinnolliset tiedot
Tietoa t=C3=A4st=C3=A4 ohjeesta
This manual was created for Sarge's debian-installer, based on the
Woody=20
installation manual for boot-floppies, which was based on earlier
Debian=20
installation manuals, and on the Progeny distribution manual which was=20
released under GPL in 2003.

$ enchant -l -d fi &lt; test-material-for-enchant-2.txt=20
This
manual
was
created
for
Sarge's
debian-installer
based
the
Woody
installation
manual
for
boot-floppies
which
was
based
earlier
Debian
installation
manuals
and
the
Progeny
distribution
manual
which
was
released
under
GPL
in

$ enchant -l -d fi_FI &lt; test-material-for-enchant-2.txt

With -d fi_FI I get an empty listing.=20

$ enchant-lsmod -list-dicts
fi (voikko)
en (ispell)
en_PH (ispell)
en_US (ispell)
fi_FI (myspell)
tr (zemberek)

According to enchant-lsmod, a different backend is used for fi_FI than
for fi. This seems strange, and not what I expected to happen with
this encant.ordering (which is the original, did not modify it):

cat /usr/share/enchant/enchant.ordering
*:myspell,aspell,ispell
fi:voikko,ispell,myspell,aspell
fi_FI:voikko,ispell,myspell,aspell
he:hspell,myspell
he_IL:hspell,myspell
yi:uspell
tr:zemberek
tr_TR:zemberek

At least the man pages needs more material. Maybe the program works as
intended, but the docs should document the intentions.

-- 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/2 CPU cores)
Locale: LANG=3Dfi_FI.UTF-8, LC_CTYPE=3Dfi_FI.UTF-8 (charmap=3DUTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libenchant1c2a depends on:
ii  libaspell15            0.60.6-1          GNU Aspell spell-checker run=
time l
ii  libc6                  2.7-18            GNU C Library: Shared librar=
ies
ii  libdbus-1-3            1.2.1-5           simple interprocess messagin=
g syst
ii  libdbus-glib-1-2       0.76-1            simple interprocess messagin=
g syst
ii  libgcc1                1:4.3.2-1.1       GCC support library
ii  libglib2.0-0           2.16.6-2          The GLib library of C routin=
es
ii  libhunspell-1.2-0      1.2.6-1           spell checker and morphologi=
cal an
ii  libstdc++6             4.3.2-1.1         The GNU Standard C++ Library=
 v3
ii  libvoikko1             1.7-2             Finnish spell-checker and hy=
phenat
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtim=
e

libenchant1c2a recommends no packages.

libenchant1c2a suggests no packages.

-- no debconf information


]