Bug 17918 - shows empty window for the query "screen" (when scanning; because of manpage+locale)
Summary: shows empty window for the query "screen" (when scanning; because of manpage+...
Status: CLOSED FIXED
Alias: None
Product: Branch 4.1
Classification: Distributions
Component: stardict-common (show other bugs)
Version: unspecified
Hardware: all Linux
: P2 normal
Assignee: murygin@altlinux.org
QA Contact: qa-4.1@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-17 18:55 MSK by Ivan Zakharyaschev
Modified: 2008-11-26 14:05 MSK (History)
0 users

See Also:


Attachments
stardict-empty.out of: "stardict > stardict-empty.out 2> stardict-empty.err" (584 bytes, text/plain)
2008-11-17 18:55 MSK, Ivan Zakharyaschev
no flags Details
stardict-empty.err of: "stardict > stardict-empty.out 2> stardict-empty.err" (213.74 KB, text/plain)
2008-11-17 18:56 MSK, Ivan Zakharyaschev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2008-11-17 18:55:10 MSK
Created attachment 3068 [details]
stardict-empty.out of: "stardict > stardict-empty.out 2> stardict-empty.err"

$ rpm -qa \*stardict\*
stardict-gcide-0.48-alt4
stardict-plugin-gucharmap-3.0.0-alt1
stardict-mueller7-1.0-alt5
stardict-common-3.0.0-alt1
stardict-slovnyk_en-ru-0.1-alt5
stardict-slovnyk_ru-en-0.1-alt5
stardict-gnome-3.0.0-alt1
stardict-gtk-3.0.0-alt1
stardict-plugin-spell-3.0.0-alt1
stardict-wn-2.0-alt1
$ 

stardict is started in the scanning mode (it is scanning for the selection and key presses). In most cases, it work well: I select a word, press "Win", and it shows the window with translation. But on some words it fails and shows an empty window. For example, on the word "screen".

Here is the output of the scanning stardict -- first, I start it, then, when I do the query, it dumps the answer not into the window, but to stderr, as you can see: (attached).

Perhaps, that's because of the "manpage" plugin. (What's special about the word "screen"? There is a manpage for it.)
Comment 1 Ivan Zakharyaschev 2008-11-17 18:56:24 MSK
Created attachment 3069 [details]
stardict-empty.err of: "stardict > stardict-empty.out 2> stardict-empty.err"

2nd attachment.
Comment 2 Ivan Zakharyaschev 2008-11-17 18:58:24 MSK
The same happens for the query "mkdir":

$ stardict
Плагин обработки XDXF словарей загружен.
Плагин пользовательского словаря загружен.
Gucharmap плагин загружен.
Плагин обработки HTML словарей загружен.
Плагин для отображения man страниц.
Плагин обработки PowerWord данных загружен.
Illegal format hash table /usr/lib/ispell/russian.hash - expected magic2 0x9602, got 0xed
Illegal format hash table /usr/lib/ispell/russian.hash - expected magic2 0x9602, got 0xed
Ошибка, нет доступных spell словарей!
Load /usr/lib/stardict/plugins/stardict_spell.so failed!
Плагин Update info загружен.
Плагин обработки Wiki словарей загружен.
bookname: slovnyk_ru-en , wordcount 55846
bookname: mueller , wordcount 46231
bookname: gcide , wordcount 176931
bookname: slovnyk_en-ru , wordcount 58017
bookname: wn , wordcount 149364


(stardict:2835): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Ошибка в строке 40 на символе 18: Текст закодирован как UTF-8 недопустимым образом ? недопустимая последовательность ?<b><span size="x-large">mkdir</span></b>
<span foreground="blue">&lt;--- Man ---&gt;</span>
MKDIR(1)                         User Commands                        MKDIR(1)



<b>N</b><b>A</b><b>M</b><b>E</b>
       mkdir - make directories

<b>S</b><b>Y</b><b>N</b><b>O</b><b>P</b><b>S</b><b>I</b><b>S</b>
       <b>m</b><b>k</b><b>d</b><b>i</b><b>r</b> [<u>O</u><u>P</u><u>T</u><u>I</u><u>O</u><u>N</u>] <u>D</u><u>I</u><u>R</u><u>E</u><u>C</u><u>T</u><u>O</u><u>R</u><u>Y</u>...

<b>D</b><b>E</b><b>S</b><b>C</b><b>R</b><b>I</b><b>P</b><b>T</b><b>I</b><b>O</b><b>N</b>
       Create the DIRECTORY(ies), if they do not already exist.

       Mandatory  arguments  to  long  options are mandatory for short options
       too.

       <b>-</b><b>m</b>, <b>-</b><b>-</b><b>m</b><b>o</b><b>d</b><b>e</b>=<u>M</u><u>O</u><u>D</u><u>E</u>
              set permission mode (as in chmod), not rwxrwxrwx - umask

       <b>-</b><b>p</b>, <b>-</b><b>-</b><b>p</b><b>a</b><b>r</b><b>e</b><b>n</b><b>t</b><b>s</b>
              no error if existing, make parent directories as needed

       <b>-</b><b>v</b>, <b>-</b><b>-</b><b>v</b><b>e</b><b>r</b><b>b</b><b>o</b><b>s</b><b>e</b>
              print a message for each created directory

       <b>-</b><b>-</b><b>h</b><b>e</b><b>l</b><b>p</b> display this help and exit

       <b>-</b><b>-</b><b>v</b><b>e</b><b>r</b><b>s</b><b>i</b><b>o</b><b>n</b>
              output version information and exit

<b>A</b><b>U</b><b>T</b><b>H</b><b>O</b><b>R</b>
       Written by David MacKenzie.

<b>R</b><b>E</b><b>P</b><b>O</b><b>R</b><b>T</b><b>I</b><b>N</b><b>G</b> <b>B</b><b>U</b><b>G</b><b>S</b>
       Report bugs to &lt;bug-coreutils@gnu.org&gt;.

<b>C</b><b>O</b><b>P</b><b>Y</b><b>R</b><b>I</b><b>G</b><b>H</b><b>T</b>
       Copyright ? 2004 Free Software Foundation, Inc.
       This is free software; see the source for copying conditions.  There is
       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
       PURPOSE.

<b>S</b><b>E</b><b>E</b> <b>A</b><b>L</b><b>S</b><b>O</b>
       The full documentation for <b>m</b><b>k</b><b>d</b><b>i</b><b>r</b> is maintained as a Texinfo manual.  If
       the  <b>i</b><b>n</b><b>f</b><b>o</b>  and  <b>m</b><b>k</b><b>d</b><b>i</b><b>r</b> programs are properly installed at your site, the
       command

              <b>i</b><b>n</b><b>f</b><b>o</b> <b>c</b><b>o</b><b>r</b><b>e</b><b>u</b><b>t</b><b>i</b><b>l</b><b>s</b> <b>m</b><b>k</b><b>d</b><b>i</b><b>r</b>

       should give you access to the complete manual.



mkdir (coreutils) 5.2.1            June 2004                          MKDIR(1)
?
Comment 3 Ivan Zakharyaschev 2008-11-17 19:00:30 MSK
It fails because of my locale. This way it's OK:

$ LC_ALL=C stardict
XDXF data parse plug-in loaded.
User dict plug-in loaded.
Gucharmap plug-in loaded.
HTML data parse plug-in loaded.
Man plug-in loaded.
PowerWord data parse plug-in loaded.
Illegal format hash table /usr/lib/ispell/russian.hash - expected magic2 0x9602, got 0xed
Illegal format hash table /usr/lib/ispell/russian.hash - expected magic2 0x9602, got 0xed
Error, no spell dictionary available!
Load /usr/lib/stardict/plugins/stardict_spell.so failed!
Update info plug-in loaded.
Wiki data parse plug-in loaded.
bookname: slovnyk_ru-en , wordcount 55846
bookname: mueller , wordcount 46231
bookname: gcide , wordcount 176931
bookname: slovnyk_en-ru , wordcount 58017
bookname: wn , wordcount 149364


and the query "mkdir" opens in a window!

$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=
$ 

Comment 4 Ivan Zakharyaschev 2008-11-17 19:04:15 MSK
Workaround: disable the man plugin.

(Yes, I've just checked it: with it disabled, it works OK.)
Comment 5 Alex Murygin 2008-11-18 19:22:50 MSK
i'm trying to fix this bug. in case of failure i will disable it temporary.
Comment 6 Alex Murygin 2008-11-26 14:05:10 MSK
due to buggy status of this plugin it was deactivated temporarily