More UTF8 fix of raster autotest
This completes 6c98fd2
, for systems where default codec is not UTF8.
Change-Id: I94795785d5d172558c40c06bd3ef4ffaba1624c5
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
parent
63e56b90c5
commit
b492f54b98
@ -848,8 +848,7 @@ void PaintCommands::command_import(QRegExp re)
|
||||
|
||||
QFileInfo fileinfo(*file);
|
||||
m_commands[m_currentCommandIndex] = QString("# import file (%1) start").arg(fileinfo.fileName());
|
||||
QTextStream textFile(file);
|
||||
QString rawContent = textFile.readAll();
|
||||
QString rawContent = QString::fromUtf8(file->readAll());
|
||||
QStringList importedData = rawContent.split('\n', QString::SkipEmptyParts);
|
||||
importedData.append(QString("# import file (%1) end ---").arg(fileinfo.fileName()));
|
||||
insertAt(m_currentCommandIndex, importedData);
|
||||
|
Loading…
Reference in New Issue
Block a user