From ba132b05f68bc83dd6212a8add925b52ef41b35a Mon Sep 17 00:00:00 2001 From: Ackurus <84048003+Ackurus@users.noreply.github.com> Date: Mon, 7 Jun 2021 09:29:29 -0400 Subject: 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. --- csv/csv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csv') 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 #include -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("(?:\"([^\"]*)\";?)|(?:([^;]*);?)?")); -- cgit v1.2.3