r17463 by jghali - fix for spell check plugin on win32 : hunspell requires strings to be encoded in UTF-8
scribus-commit
scribus-commit at lists.scribus.net
Fri Apr 20 20:40:31 UTC 2012
Author: jghali
Date: Fri Apr 20 20:40:31 2012
New Revision: 17463
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17463
Log:
fix for spell check plugin on win32 : hunspell requires strings to be encoded in UTF-8
Modified:
branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
Modified: branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17463&path=/branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp Fri Apr 20 20:40:31 2012
@@ -157,12 +157,12 @@
++wordCount;
++wordNo;
QStringList replacements;
- if (hspellers[0]->spell(word.toLocal8Bit().constData())==0)
+ if (hspellers[0]->spell(word.toUtf8().constData())==0)
{
// qDebug()<<word;
++errorCount;
char **sugglist = NULL;
- int suggCount=hspellers[0]->suggest(&sugglist, word.toLocal8Bit().constData());
+ int suggCount=hspellers[0]->suggest(&sugglist, word.toUtf8().constData());
for (int j=0; j < suggCount; ++j)
{
// qDebug()<<"Suggestion "<<j<<":"<<sugglist[j];
More information about the scribus-commit
mailing list