// Wrapper
//
-bool iparserdocstream::setEncoding(std::string const & e)
+void iparserdocstream::setEncoding(std::string const & e)
{
is_ << lyx::setEncoding(e);
- if (s_.empty())
- return true;
- cerr << "Setting encoding " << e << " too late. The encoding of `"
- << to_utf8(s_) << "ยด is wrong." << std::endl;
- return false;
}
{
//cerr << "setting encoding to " << e << std::endl;
encoding_iconv_ = e;
- return is_.setEncoding(e);
+ is_.setEncoding(e);
+ return true;
}