Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

withCString uses the systems locale, unclear what input encoding hunspell expects. #4

Open
typetetris opened this issue Aug 27, 2018 · 1 comment

Comments

@typetetris
Copy link
Contributor

withCString uses the systems locale to transform a haskell String to a char * for the C API. Its unclear, wether that is the behaviour, hunspell the library expects.

As it is unclear, what encoding hunspell the library expects, I didn't prepare a PR, but created this ticket to track the issue.

Asking hunspell, whats the behaviour here: hunspell/hunspell#588

@unhammer
Copy link

Would this explain why I'm getting

λ> import Language.Hunspell
λ> checker <- createSpellChecker "/usr/share/hunspell/nb_NO.aff" "/usr/share/hunspell/nb_NO.dic"
λ> suggest checker "omlop"
[ "omlp" ]

whereas

$ echo omlop | hunspell -d nb_NO
Hunspell 1.7.0
& omlop 1 0: omløp

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants