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

On MacOS: collate_byname failed to construct for en_US.utf-8 #37

Closed
ebuildy opened this issue Jul 11, 2018 · 2 comments
Closed

On MacOS: collate_byname failed to construct for en_US.utf-8 #37

ebuildy opened this issue Jul 11, 2018 · 2 comments

Comments

@ebuildy
Copy link

ebuildy commented Jul 11, 2018

Python 3.6.5 (default, Apr 25 2018, 14:23:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import jamspell
>>> corrector = jamspell.TSpellCorrector()
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: collate_byname<char>::collate_byname failed to construct for en_US.utf-8

I see locale is hardcoded here =>

: Locale("en_US.utf-8")
, why ?

@bakwc
Copy link
Owner

bakwc commented Jul 11, 2018

It's a known bug, just have not fix it yet. You can try to remove hardocded locale yourself, I will be glad to accept your PR. Closing this issue, cause it's a duplicate of #17

@bakwc bakwc closed this as completed Jul 11, 2018
@MrBenGriffin
Copy link

Use "en_US.UTF-8" mac os x uses upper case for UTF-8.

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

3 participants