Author Topic: Wrong spell checker on russian (and probably other languages)  (Read 1298 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2363
Re: Wrong spell checker on russian (and probably other languages)
« Reply #15 on: May 12, 2019, 12:44:10 pm »
The problem is that utf8 does not work on windows and we use utf8 everywhere (what is the only right thing to do).  wxIspunc uses the system function std::iswpunc and this function is not really nice specified by the standard... So the word splitting won't work on windows if we do not convert it to utf16 when we want to use some unicode aware functionality. And what i can tell, for wxIspunc (aka std::iswpunc) also the local is crucial, because as i noted top, with my locale, russian characters are not detected correctly...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11783
    • Travis build status
Re: Wrong spell checker on russian (and probably other languages)
« Reply #16 on: May 12, 2019, 12:57:33 pm »
Then why don't you just write a cbIspuncUtf8 and be done with it?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]