blob: 3fee25313544c46f175687954a493be31b092474 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Use UTF-8 for parsing /etc/os-release.
diff --git a/src/lib/util/kosrelease.cpp b/src/lib/util/kosrelease.cpp
index 0469aba..1d74f2a 100644
--- a/src/lib/util/kosrelease.cpp
+++ b/src/lib/util/kosrelease.cpp
@@ -134,9 +134,9 @@ public:
QStringList parts;
while (!file.atEnd()) {
// Trimmed to handle indented comment lines properly
- line = QString::fromLatin1(file.readLine()).trimmed();
+ line = QString::fromUtf8(file.readLine()).trimmed();
if (line.startsWith(QLatin1Char('#'))) {
// Comment line
// Lines beginning with "#" shall be ignored as comments.
continue;
|