Package: dictionaries-common
Version: 1.28.15
Severity: normal
Dear Maintainer,
With hunspell-he installed, starting emacs I get the following error message :
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Error while loading 50dictionaries-common: Invalid read syntax: "] in a list"
Without that package, no problem.
The origin seems to be in the file
/var/cache/dictionaries-common/emacsen-ispell-dicts.el , that contains the
following lines :
(add-to-list 'debian-hunspell-only-dictionary-alist
'("hebrew"
"[a-zA-Z\327\231\327\225\327\224\327\220\327\242\327\227\327\233\327\247\327\251\327\241\327\226\327\223\327\222\327\221\327\250\327\240\327\236\327\230\327\246\327\252\327\244\327\235\327\243\327\232\327\245\327\237\327\234]"
"[^a-zA-Z\327\231\327\225\327\224\327\220\327\242\327\227\327\233\327\247\327\251\327\241\327\226\327\223\327\222\327\221\327\250\327\240\327\236\327\230\327\246\327\252\327\244\327\235\327\243\327\232\327\245\327\237\327\234]"
"[אבגדהוזחטיכלמנסעפצקרשתםןךףץ'"]"
nil
("-d" "he_IL")
nil
utf-8))
You will notice the unescaped " in the fifth line, followed indeed by the
character ] ...
Since the file is generated by perl (if I understand correctly, it is generated
by /usr/share/perl5/Debian/DictionariesCommon.pm), this is where I stopped
digging.
Can that perl script be repaired so as to escape double quotes when appropriate
?
Cheers,
Itaï.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (600, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.18.0-2-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dictionaries-common depends on:
ii debconf [debconf-2.0] 1.5.79
ii emacsen-common 3.0.4
ii libtext-iconv-perl 1.7-7+b2
dictionaries-common recommends no packages.
Versions of packages dictionaries-common suggests:
ii hunspell 1.7.0-4
pn wordlist <none>
-- debconf information:
dictionaries-common/debconf_database_corruption:
dictionaries-common/default-ispell:
* dictionaries-common/default-wordlist:
dictionaries-common/invalid_debconf_value:
dictionaries-common/old_wordlist_link: true
dictionaries-common/ispell-autobuildhash-message:
dictionaries-common/selecting_ispell_wordlist_default: