Menu

#211 No Encoding of Word for Suggestions in Piped Mode

open
nobody
None
5
2014-10-17
2011-12-31
No

This problem affects at least releases 1.2.8, 1.3.1 and 1.3.2.

In src/tools/hunspell.cxx, when the program is invoked using hunspell -a, method suggest is invoked near the case label 'case PIPE:' as
pMS[d]->suggest(&wlst, token)
It should be invoked as
suggest(&wlst[k], chenc(token, io_enc, dic_enc[d]))

This is how the method is usually invoked within this file.

A consequence of this bug is that when communicated with in UTF-8, useful suggestions are not generated from an 8-bit dictionary.

Discussion

  • Ernest A

    Ernest A - 2014-08-24

    Also in hunspell 1.3.3.

    $ echo 'atanció' | hunspell
    Hunspell 1.3.3
    & atanció 6 0: natació, atenció, anotació, incitació, ancianitat, anunciata

    $ echo 'atanció' | hunspell -a
    @(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.3)
    & atanció 1 0: ancianitat

     
  • caolan mcnamara

    caolan mcnamara - 2014-10-17

    I think this is now fixed in master for >= 1.3.4