Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-06-11 12:52:06 +0300
committerHannah von Reth <vonreth@kde.org>2021-06-11 13:53:13 +0300
commit4d9fee96838c729407bc2722fa7b3d06cecf573b (patch)
treea70d1c7ef72adf5a13e0ae6af230647252c27128 /src
parent820dc67db98596479f1c2afca734a2c24e2b14f8 (diff)
Ensure utf-8 encoding of the crash log
Diffstat (limited to 'src')
-rw-r--r--src/libsync/logger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp
index fce406f3e..eb41dfffe 100644
--- a/src/libsync/logger.cpp
+++ b/src/libsync/logger.cpp
@@ -223,6 +223,7 @@ void Logger::dumpCrashLog()
QFile logFile(QDir::tempPath() + QStringLiteral("/" APPLICATION_NAME "-crash.log"));
if (logFile.open(QFile::WriteOnly)) {
QTextStream out(&logFile);
+ out.setCodec("UTF-8");
for (int i = 1; i <= CrashLogSize; ++i) {
out << _crashLog[(_crashLogIndex + i) % CrashLogSize];
}