Mercurial > hg > easyhg
diff src/logparser.cpp @ 408:005633eed862
Add uniDecode, and use it when parsing logs so as to decode "\uABCD" substrings. Also force Hg encoding to utf-8.
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 21:20:11 +0100 |
parents | b9c153e00e84 |
children | 533519ebc0cb |
line wrap: on
line diff
--- a/src/logparser.cpp Thu May 26 15:52:11 2011 +0100 +++ b/src/logparser.cpp Mon Jun 06 21:20:11 2011 +0100 @@ -17,6 +17,7 @@ #include "logparser.h" +#include "common.h" #include "debug.h" #include <QStringList> @@ -45,7 +46,7 @@ if (re.indexIn(line) == 0) { QString key = re.cap(1); QString value = re.cap(2); - dictionary[key.trimmed()] = value; + dictionary[key.trimmed()] = uniDecode(value); } } results.push_back(dictionary);