reassign 640788 libenchant1c2a retitle 640788 libenchant1c2a: Make enchant-ispell compatible with new ispell in sid tag 640788 +patch
On Wed, Sep 07, 2011 at 08:54:53PM +1000, Russell Coker wrote: > Package: ibritish > Version: 3.3.02-5 > Severity: normal > > Illegal format hash table /usr/lib/ispell/british.hash - expected magic2 > 0x9602, got 0x0 > > When I run pidgin I get the above message. I don't know if it's pidgin or > ibritish at fault. Sorry if I filed the bug against the wrong one. > > The error message occurs repeatedly, it occurs on startup and also occurs when > opening a chat window. This seems to be caused by enchant ( pidgin -> libgtkspell0 -> libenchant1c2a ) not being updated for new ispell format, with no alternative spellchecker specified for that language. e.g., I reproduced this with ~/.enchant/enchant.ordering: en_GB:ispell $ echo "hola" | enchant -l -d british Illegal format hash table /usr/lib/ispell/british.hash - expected magic2 0x9602, got 0x0 hola Attached patch (with some changes borrowed from new ispell config.X) seems to work. Not sure if something else is needed. New package should also have a Breaks field in its control file against old ispell dictionaries, in a way similar to new ispell. In the meantime, if you have aspell-en installed you can try to add aspell as an alternative in enchant.ordering file to make enchant use aspell for that language if ispell fails, en_GB:ispell,aspell or comment that line, so enchant tries all possibilities in its default ordering. -- Agustin
diff -Nru --exclude '*changelog' enchant-1.6.0/debian/patches/02-new-ispell-format.diff enchant-1.6.0/debian/patches/02-new-ispell-format.diff --- enchant-1.6.0/debian/patches/02-new-ispell-format.diff 1970-01-01 01:00:00.000000000 +0100 +++ enchant-1.6.0/debian/patches/02-new-ispell-format.diff 2011-09-07 18:34:01.000000000 +0200 @@ -0,0 +1,13 @@ +Index: enchant-1.6.0/src/ispell/ispell.h +=================================================================== +--- enchant-1.6.0.orig/src/ispell/ispell.h 2011-09-07 18:32:36.212371501 +0200 ++++ enchant-1.6.0/src/ispell/ispell.h 2011-09-07 18:33:55.152091750 +0200 +@@ -297,7 +297,7 @@ + ** character counts as two! + */ + #ifndef MAXSTRINGCHARS +-#define MAXSTRINGCHARS 128 ++#define MAXSTRINGCHARS 512 + #endif /* MAXSTRINGCHARS */ + + /* diff -Nru --exclude '*changelog' enchant-1.6.0/debian/patches/series enchant-1.6.0/debian/patches/series --- enchant-1.6.0/debian/patches/series 2011-08-18 21:09:33.000000000 +0200 +++ enchant-1.6.0/debian/patches/series 2011-09-07 18:34:30.000000000 +0200 @@ -1 +1,2 @@ debian-changes-1.6.0-3 +02-new-ispell-format.diff