summaryrefslogtreecommitdiffhomepage
path: root/csv
diff options
context:
space:
mode:
authorAckurus <84048003+Ackurus@users.noreply.github.com>2021-06-07 09:29:29 -0400
committerAckurus <84048003+Ackurus@users.noreply.github.com>2021-06-07 09:29:29 -0400
commitba132b05f68bc83dd6212a8add925b52ef41b35a (patch)
tree329dc2db6d92b4ffe1380456d64336994c10624e /csv
parenta24e2b82a29701b53e1923237812368de8fb5e10 (diff)
Fix segmentation fault on *nix builds.
The games.csv file seems to be UTF-8 compatible. Changing the TextCodec from "System" to "UTF-8" prevents segmentation fault on decoding on ArchLinux builds.
Diffstat (limited to 'csv')
-rw-r--r--csv/csv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/csv/csv.cpp b/csv/csv.cpp
index a1f62dc0..6b4d0bcd 100644
--- a/csv/csv.cpp
+++ b/csv/csv.cpp
@@ -19,7 +19,7 @@
#include <utility>
#include <algorithm>
-const QTextCodec* const CSV::m_codec = QTextCodec::codecForName("System");
+const QTextCodec* const CSV::m_codec = QTextCodec::codecForName("UTF-8");
const QRegExp CSV::m_rx = QRegExp(QString("((?:(?:[^;\\n]*;?)|(?:\"[^\"]*\";?))*)?\\n?"));
const QRegExp CSV::m_rx2 = QRegExp(QString("(?:\"([^\"]*)\";?)|(?:([^;]*);?)?"));