]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.C
explain why ownsClipbiard() does not work on Windows and OS X
[lyx.git] / src / ispell.C
index 7504507e9815145887bbc4e0c625c7bbb9620f0d..3813ec47066050e3378e5666e5be76395630d1d9 100644 (file)
@@ -221,7 +221,7 @@ docstring const from_iconv_encoding(string const & s, string const & encoding)
 ISpell::ISpell(BufferParams const & params, string const & lang)
        : in(0), out(0), inerr(0), str(0)
 {
-       lyxerr[Debug::GUI] << "Created ispell" << endl;
+       LYXERR(Debug::GUI) << "Created ispell" << endl;
 
        encoding = params.encoding().iconvName();
 
@@ -315,7 +315,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
 
 ISpell::~ISpell()
 {
-       lyxerr[Debug::GUI] << "Killing ispell" << endl;
+       LYXERR(Debug::GUI) << "Killing ispell" << endl;
 
        if (in)
                fclose(in);
@@ -404,7 +404,7 @@ enum ISpell::Result ISpell::check(WordLangTuple const & word)
        if (encoded.empty()) {
                error_ = bformat(
                        _("Could not check word `%1$s' because it could not be converted to encoding `%2$s'."),
-                       word.word(), encoding);
+                       word.word(), from_ascii(encoding));
                return UNKNOWN_WORD;
        }
        ::fputs(encoded.c_str(), out);
@@ -475,7 +475,7 @@ void ISpell::insert(WordLangTuple const & word)
        if (encoded.empty()) {
                error_ = bformat(
                        _("Could not insert word `%1$s' because it could not be converted to encoding `%2$s'."),
-                       word.word(), encoding);
+                       word.word(), from_ascii(encoding));
                return;
        }
        ::fputc('*', out); // Insert word in personal dictionary
@@ -490,7 +490,7 @@ void ISpell::accept(WordLangTuple const & word)
        if (encoded.empty()) {
                error_ = bformat(
                        _("Could not accept word `%1$s' because it could not be converted to encoding `%2$s'."),
-                       word.word(), encoding);
+                       word.word(), from_ascii(encoding));
                return;
        }
        ::fputc('@', out); // Accept in this session