Commit 376d43ba authored by Sandro Knauß's avatar Sandro Knauß
Browse files

Let rendertest pass for LANG=C

parent af2ada84
......@@ -40,7 +40,6 @@ FileHtmlWriter::FileHtmlWriter(const QString &filename)
: HtmlWriter(),
mFile(filename.isEmpty() ? QStringLiteral("filehtmlwriter.out") : filename)
{
mStream.setCodec("UTF-8");
}
FileHtmlWriter::~FileHtmlWriter()
......@@ -77,7 +76,7 @@ void FileHtmlWriter::reset()
void FileHtmlWriter::write(const QString &str)
{
mStream << str.toUtf8();
mStream << str;
flush();
}
......@@ -103,6 +102,7 @@ void FileHtmlWriter::openOrWarn()
qCWarning(MIMETREEPARSER_LOG) << "FileHtmlWriter: Cannot open file" << mFile.fileName();
} else {
mStream.setDevice(&mFile);
mStream.setCodec("UTF-8");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment