Acknowledgement sent
to Michael Vlasenko <[email protected]>:
New Bug report received and forwarded. Copy sent to Robert Luberda <[email protected]>.
(Sun, 09 Sep 2018 11:06:05 GMT) (full text, mbox, link).
Package: dictd
Version: 1.12.1+dfsg-8
Severity: important
Dear Maintainer,
I created a dictionary that consists of two modules: with Plain Text
content (heb-eng_strong.tar.gz) and with MIME content
(heb-eng_strong__mime.tar.gz).
I configured dictd to support OPTION MIME in this dictionary.
I make a search query:
dict -M 01647
I get the answer:
From [*]:
Content-type: text/html; charset=utf-8
Content-transfer-encoding: 8bit
...
Should be:
From Online Bible Hebrew Lexicon (English) [heb-eng_strong]:
Content-type: text/html; charset=utf-8
Content-transfer-encoding: 8bit
...
It's possible that this is some kind of bug in dictd.
How to reproduce the problem
This problem can be reproduced only when used together with the
dictionary heb-rus_strong, consisting of two modules: with
Plain Text content (heb-rus_strong.tar.gz) and with
MIME content (heb-rus_strong__mime.tar.gz).
Add the following lines to the Database section of the dictd.conf
file (located in the /etc/dictd directory):
database heb-rus_strong__nomime {
data /usr/share/dictd/dictmime/heb-rus_strong.dict.dz
index /usr/share/dictd/dictmime/heb-rus_strong.index
invisible # optional
}
database heb-rus_strong__mime {
data /usr/share/dictd/dictmime/heb-rus_strong__mime.dict.dz
index /usr/share/dictd/dictmime/heb-rus_strong__mime.index
invisible # optional
}
database_mime heb-rus_strong {
dbname_mime "heb-rus_strong__mime"
dbname_nomime "heb-rus_strong__nomime"
}
database heb-eng_strong__nomime {
data /usr/share/dictd/dictmime/heb-eng_strong.dict.dz
index /usr/share/dictd/dictmime/heb-eng_strong.index
invisible # optional
}
database heb-eng_strong__mime {
data /usr/share/dictd/dictmime/heb-eng_strong__mime.dict.dz
index /usr/share/dictd/dictmime/heb-eng_strong__mime.index
invisible # optional
}
database_mime heb-eng_strong {
dbname_mime "heb-eng_strong__mime"
dbname_nomime "heb-eng_strong__nomime"
}
After you finish editing the dictd.conf configuration file, you must restart the
DICT server:
sudo /etc/init.d/dictd restart
After server overloading:
dict -M 01647
Instead of
From Online Bible Hebrew Lexicon (English) [heb-eng_strong]:
you will see:
From [*]:
... Michael
-- System Information:
Debian Release: 9.5
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-042stab129.1 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE=C (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dictd depends on:
ii adduser 3.115
ii debconf [debconf-2.0] 1.5.61
ii dictzip 1.12.1+dfsg-8
ii libc6 2.24-11+deb9u3
ii libmaa4 1.4.2-1
ii lsb-base 9.20161125
ii netbase 5.4
ii ucf 3.0036
ii update-inetd 4.47
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages dictd recommends:
ii dict [dict-client] 1.12.1+dfsg-8
Versions of packages dictd suggests:
pn dict-foldoc <none>
pn dict-gcide | dictd-dictionary <none>
pn dict-jargon <none>
pn dict-wn <none>
-- Configuration Files:
/etc/dictd/dictd.conf changed:
global {
}
access {
allow localhost
allow 127.0.0.1
allow inetd
allow *
}
include /etc/dictd/dictd_mime.list
include /var/lib/dictd/db.list
database_exit
include /etc/dictd/dictd_virtual.list
-- debconf information:
dictd/run_mode: daemon
Acknowledgement sent
to Власенко Михаил Викторович <[email protected]>:
Extra info received and forwarded to list. Copy sent to Robert Luberda <[email protected]>.
(Fri, 14 Sep 2018 04:51:03 GMT) (full text, mbox, link).
Subject: Re: Bug#908376: dictd: Support OPTION MIME problem
Date: Fri, 14 Sep 2018 10:47:42 +0600
I failed to reflect the essence of the problem in the subject. I should note the following: tests showed that the problem is not related to the use of the OPTION MIME Command. When you use MATCH Command, if there is a response from the second dictionary of type database_mime, it is not displayed correctly: the code name of the dictionary looks like *.
For example:
$ dict -f -M -s word -m 01647
localhost 2628 heb-rus_strong 01647
localhost 2628 * 01647
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.