#include <config.h>
-#ifdef USE_ASPELL
-
#include "debug.h"
#include <aspell.h>
#include <boost/assert.hpp>
+using lyx::docstring;
+
using std::string;
}
-string const ASpell::error()
+docstring const ASpell::error()
{
char const * err = 0;
-
+
if (spell_error_object && aspell_error_number(spell_error_object) != 0) {
err = aspell_error_message(spell_error_object);
}
- return (err ? err : "");
+ return (err ? lyx::from_utf8(err) : docstring());
}
-
-#endif // USE_ASPELL