Skip to content
Snippets Groups Projects
Commit 014c9f0b authored by Edric Milaret's avatar Edric Milaret Committed by Stepan Salenikovich
Browse files

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
parent 3e6c0690
Branches
Tags
No related merge requests found
...@@ -80,6 +80,7 @@ LocalHistoryCollection::~LocalHistoryCollection() ...@@ -80,6 +80,7 @@ LocalHistoryCollection::~LocalHistoryCollection()
void LocalHistoryEditor::saveCall(QTextStream& stream, const Call* call) void LocalHistoryEditor::saveCall(QTextStream& stream, const Call* call)
{ {
stream.setCodec("UTF-8");
const QString direction = (call->direction()==Call::Direction::INCOMING)? const QString direction = (call->direction()==Call::Direction::INCOMING)?
Call::HistoryStateName::INCOMING : Call::HistoryStateName::OUTGOING; Call::HistoryStateName::INCOMING : Call::HistoryStateName::OUTGOING;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment