From 7b0ece42f0dbfe4776e170809283a25a704cc886 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Fri, 26 Mar 2010 20:40:50 +0100 Subject: [PATCH] Fixed to convert in utf-8 earlier in the process. --- src/IDF/Scm/Git.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IDF/Scm/Git.php b/src/IDF/Scm/Git.php index 3ae4944..cd7ec0f 100644 --- a/src/IDF/Scm/Git.php +++ b/src/IDF/Scm/Git.php @@ -501,6 +501,8 @@ class IDF_Scm_Git extends IDF_Scm if (preg_match('/^commit (\w{40})$/', $line)) { if (count($c) > 0) { $c['full_message'] = trim($c['full_message']); + $c['full_message'] = IDF_Commit::toUTF8($c['full_message']); + $c['title'] = IDF_Commit::toUTF8($c['title']); $res[] = (object) $c; } $c = array(); @@ -534,6 +536,8 @@ class IDF_Scm_Git extends IDF_Scm } } $c['full_message'] = !empty($c['full_message']) ? trim($c['full_message']) : ''; + $c['full_message'] = IDF_Commit::toUTF8($c['full_message']); + $c['title'] = IDF_Commit::toUTF8($c['title']); $res[] = (object) $c; return $res; }