From 014c9f0b7d6b47c7dd988eb62886566b70115753 Mon Sep 17 00:00:00 2001
From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com>
Date: Thu, 7 Jan 2016 13:17:20 -0500
Subject: [PATCH] history: fix encoding of history file

- Force to save file in UTF-8 encoding

Note: This does not produce a crash but the display
name is incorrectly rendered once reloaded from disk

Change-Id: I1a5cf22172a10c31d749170d20741966224392bc
Tuleap: #223
---
 src/localhistorycollection.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/localhistorycollection.cpp b/src/localhistorycollection.cpp
index e1d978bb..542f0cd7 100644
--- a/src/localhistorycollection.cpp
+++ b/src/localhistorycollection.cpp
@@ -80,6 +80,7 @@ LocalHistoryCollection::~LocalHistoryCollection()
 
 void LocalHistoryEditor::saveCall(QTextStream& stream, const Call* call)
 {
+   stream.setCodec("UTF-8");
    const QString direction = (call->direction()==Call::Direction::INCOMING)?
       Call::HistoryStateName::INCOMING : Call::HistoryStateName::OUTGOING;
 
-- 
GitLab