Package: squirrelmail
Version: 2:1.4.4-5
Severity: normal

Installed, ibritish, inorwegian, wbritish, wnorwegian.


In /var/cache/dictionaries-common/ispell-dicts-list.txt

bokmål (Bokmal Norwegian)
british (British English)
nynorsk (New Norwegian)

Code from sqspell_config.php:

    $dicts = file( '/var/cache/dictionaries-common/ispell-dicts-list.txt' );
    $SQSPELL_APP = array();
    foreach ($dicts as $dict) {
        preg_match('/(\w+)\s+\((.+)\)/', $dict, $dparts);
        $SQSPELL_APP[$dparts[2]] = 'ispell -d ' . $dparts[1] . ' -a';
    }

The preg_match gives $dparts[1] of respectivly

l
british
nynorsk


the following preg_match line works:

  preg_match('/([^ ]*)\s+\((.+)\)/', $dict, $dparts)

but may be unsafe for other dictionaries.



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages squirrelmail depends on:
ii  apache2                 2.0.54-4         next generation, scalable, extenda
ii  apache2-mpm-prefork [ht 2.0.54-4         traditional model for Apache2
ii  libapache2-mod-php4     4:4.3.10-15      server-side, HTML-embedded scripti
ii  perl                    5.8.4-8          Larry Wall's Practical Extraction 
ii  php4                    4:4.3.10-15      server-side, HTML-embedded scripti
ii  squirrelmail-locales    1.4.4-20050308-1 Translations for the SquirrelMail 

-- no debconf information


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

Reply via email to