Bug#640788: ibritish: pidgin says: Illegal format hash table /usr/lib/ispell/british.hash

2011-10-19 Thread Agustin Martin
On Wed, Sep 07, 2011 at 06:59:32PM +0200, Agustin Martin wrote:
 On Wed, Sep 07, 2011 at 08:54:53PM +1000, Russell Coker wrote:
  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.

For the records, I committed this change to enchant collab-maint git repo,

http://http://anonscm.debian.org/gitweb/?p=collab-maint/enchant.git;a=commit;h=515207f8e5285e79be21c77c30fd041247eb9086

enchant is currently orphaned. I may make at some time a QA upload including
this change.

Regards,

-- 
Agustin



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#640788: ibritish: pidgin says: Illegal format hash table /usr/lib/ispell/british.hash

2011-09-08 Thread Robert Luberda
Russell Coker writes:
 
 Illegal format hash table /usr/lib/ispell/british.hash - expected magic2 
 0x9602, got 0x0

Could you please send me the output of the following commands:

xxd -l 64 /usr/lib/ispell/british.hash
ls -l  /usr/lib/ispell/british.hash
ls -Ll /usr/lib/ispell/british.hash
cat /var/lib/ispell/british.compat


Thanks,
robert



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#640788: ibritish: pidgin says: Illegal format hash table /usr/lib/ispell/british.hash

2011-09-07 Thread Russell Coker
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.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ibritish depends on:
ii  debconf [debconf-2.0]  1.5.41  
ii  dictionaries-common1.11.6  
ii  ienglish-common3.3.02-5
ii  ispell 3.3.02-5

ibritish recommends no packages.

Versions of packages ibritish suggests:
pn  wbritish  none

-- debconf information:
  ibritish/languages: british (British English)
  shared/packages-ispell:



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#640788: ibritish: pidgin says: Illegal format hash table /usr/lib/ispell/british.hash

2011-09-07 Thread Agustin Martin
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.0 +0100
+++ enchant-1.6.0/debian/patches/02-new-ispell-format.diff	2011-09-07 18:34:01.0 +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.0 +0200
+++ enchant-1.6.0/debian/patches/series	2011-09-07 18:34:30.0 +0200
@@ -1 +1,2 @@
 debian-changes-1.6.0-3
+02-new-ispell-format.diff