diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-02 14:49:31 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-09 10:45:01 +0200 |
commit | fbabbe63c5dcf688f38a7c9bf1bae63b19086935 (patch) | |
tree | d67ceadb22ec11b03b9d84ea1bd203fef831b2d5 /src/testlib/qxmltestlogger.cpp | |
parent | 693468a54da02ff64b104bae8d3b419253889233 (diff) |
Use UTF-8 in the QtTest data and benchmark tags
Future-proofing. Since Qt source code is now mandated to be in UTF-8,
it is entirely possible that someone will use non-ASCII in data tags.
Though it would be interesting to see how to access them from the
Windows command-line.
Change-Id: I880fc312432b62143888ff1e1d9abbd54f704601
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qxmltestlogger.cpp')
-rw-r--r-- | src/testlib/qxmltestlogger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qxmltestlogger.cpp b/src/testlib/qxmltestlogger.cpp index 7e5da20680..185cbc5c0a 100644 --- a/src/testlib/qxmltestlogger.cpp +++ b/src/testlib/qxmltestlogger.cpp @@ -110,7 +110,7 @@ void QXmlTestLogger::startLogging() QTestCharBuffer quotedTc; xmlQuote("edTc, QTestResult::currentTestObjectName()); QTest::qt_asprintf(&buf, - "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" "<TestCase name=\"%s\">\n", quotedTc.constData()); outputString(buf.constData()); } @@ -244,7 +244,7 @@ void QXmlTestLogger::addBenchmarkResult(const QBenchmarkResult &result) xmlQuote("edMetric, benchmarkMetricName(result.metric)); - xmlQuote("edTag, result.context.tag.toAscii().constData()); + xmlQuote("edTag, result.context.tag.toUtf8().constData()); QTest::qt_asprintf( &buf, |