Hi gERD!

On Sat, 20 Aug 2005, gERD Schaufelberger wrote:

> > What version of dict-de-en did you use before?  Maybe that's a
> > hint, why you have these problems, while dict-de-en 1.4-1 runs
> > without problems on my system.

> dict-de-en 1.3.5, Still, I can't tell whether the other settings on
> my system are the same now. Actually, my harddisk broke and I had to
> start from scratch...

Okay, that explains, why 1.3-5 worked while 1.4-1 did not.  If you
simply upgraded from 1.3-5 I wouldn't understand that it worked
before, because the utf-8 handling wasn't changed.

> > Maybe it's one of these UTF-8 problems we had in the past?  What
> > DICTD_ARGS did you define in /etc/default/dictd?  I use
> > 
> > DICTD_ARGS="$DICTD_ARGS --locale=de_DE.UTF-8"
> > 
> > If you don't use an UTF-8 locale here (and have this UTF-8 locale
> > installed via /etc/locale.gen (you can add new locales by running
> > "dpkg-reconfigure locales")), you may run into trouble, because
> > dict-de-en is UTF-8 encoded.  Prior to version 1.2-5 dict-de-en was
> > latin-1 encoded, which caused trouble, because this means that all
> > dictionaries have to be latin-1 encoded, so UTF-8 may be the better
> > decision because with UTF-8 we can cover most languages of the world.
> 
> That's it! 
> 
> Actually I only had "en_US ISO-8859-1" in /etc/locale.gen. I followed
> your suggestions and added "de_DE UTF-8". Also there were no DICTD_ARGS
> defined. After using your recommendations dictd runs again. 

Good to hear.

> Now, as this problem is solved, everything sounds quite plausible.
> However, I reckon I would never ever found a solution by myself. :-(
> 
> Is there a way to check these problems during installation? Maybe
> some post-install rules in the package? Also a README-file in the
> package-doc would help. (Sometimes, I read them :-) )

That's the point I don't understand.  In postinst I check for this and
inform you using debconf:
I first check, whether DICTD_ARGS in /etc/default/dictd contains
"utf-8" (case insensitive).  If it is found, everything is okay and
nothing happens.  In your setup no utf-8 was defined in
/etc/default/dict, so the second case occurs.  Now postinst searches
/etc/locale.gen for a utf-8 locale.  If no utf-8 locale can be found,
the message 

 _Description: No UTF-8 locale found!
 You are installing the German-English dictd(8) dictionary, which is UTF-8
 encoded.  To get this working, dictd(8) has to be called with the
 parameter --locale=de_DE.UTF-8 (or any other UTF-8 supporting locale). 
 There was no UTF-8 locale found in your /etc/locale.gen and the parameter
 --locale=xx_YY.UTF-8 was not set in your /etc/defaults/dictd, so after
 installing this package dictd may stop working.
 .
 Install a UTF-8 locale (using "dpkg-reconfigure locales") and add the
 "--locale=xx_YY.UTF-8" option to DICTD_ARGS in /etc/defaults/dictd by
 hand!

should inform you via debconf, that there is a problem and how to
react.  If a utf-8 locale is available, you are asked, whether
postinst is allowed to modify /etc/default/dictd for you.

The question is, why you didn't get the above message (with priority
"critical", so usually it should be presented to you always)?  Is it
possible, that you overlooked it?  Or is there a bug in the postinst
script, which I didn't see and cannot reproduce?

It depends on this question, whether I can close the bug report now
or have to modify postinst...

Tschoeeee

        Roland


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

Reply via email to