Commit 16081c10 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

use local8Bit instead of latin1 here as well

parent 82b72b08
......@@ -728,7 +728,7 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
{
QFile qfile(m_projectFilePath);
if (qfile.open(QIODevice::ReadOnly | QIODevice::Text)) {
contents = QString::fromLatin1(qfile.readAll()); // yes, really latin1
contents = QString::fromLocal8Bit(qfile.readAll());
qfile.close();
lines = contents.split(QLatin1Char('\n'));
while (!lines.isEmpty() && lines.last().isEmpty())
......@@ -779,7 +779,7 @@ void Qt4PriFileNode::save(const QStringList &lines)
QFile qfile(m_projectFilePath);
if (qfile.open(QIODevice::WriteOnly | QIODevice::Text)) {
foreach (const QString &str, lines) {
qfile.write(str.toLatin1()); // yes, really latin1
qfile.write(str.toLocal8Bit());
qfile.write("\n");
}
qfile.close();
......
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