Mercurial > retraceit
comparison src/folderselectdialog.cpp @ 110:48141e3c8903
Set textcodec for user env file to UTF-8
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 08 Dec 2016 15:24:25 +0100 |
parents | 0ad468912ff3 |
children | 9daf778feaf1 |
comparison
equal
deleted
inserted
replaced
109:0ad468912ff3 | 110:48141e3c8903 |
---|---|
234 if (!file.open(QIODevice::ReadOnly)) { | 234 if (!file.open(QIODevice::ReadOnly)) { |
235 qDebug () << "Failed to open: " << path; | 235 qDebug () << "Failed to open: " << path; |
236 return ret; | 236 return ret; |
237 } | 237 } |
238 QTextStream in(&file); | 238 QTextStream in(&file); |
239 | 239 in.setCodec("UTF-8"); |
240 while (!in.atEnd()) { | 240 while (!in.atEnd()) { |
241 QString line = in.readLine(); | 241 QString line = in.readLine(); |
242 int equalsign = line.indexOf("="); | 242 int equalsign = line.indexOf("="); |
243 if (equalsign != -1) { | 243 if (equalsign != -1) { |
244 QString name = stripQuotes(line.left(equalsign).replace (QStringLiteral("export "), "")); | 244 QString name = stripQuotes(line.left(equalsign).replace (QStringLiteral("export "), "")); |