From 8cd40d55038ea6e9994b356e89ec28c12a1f3692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Thu, 28 Jun 2018 10:25:22 +0200 Subject: Fix xml output to have valid UTF-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some datatags had characters outside the ASCII range. (This is discouraged). And when dumping the datatag to xml output we dumped the binary content of the data tag without encoding it from latin1 to utf-8. This meant that all characters in the range 0x80-0xff produced invalid utf-8 sequences. The solution is to encode the data tag as UTF-8. Change-Id: Iaaecc992b756836845bfb98429f20f1fb5e2b291 Reviewed-by: Jędrzej Nowacki (cherry picked from commit 1d2294735536c53fca8e56ed4b262c4bca6b4d29) Reviewed-by: Frederik Gladhorn --- tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp b/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp index 43c00f4..cce3c1b 100644 --- a/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp +++ b/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp @@ -277,7 +277,7 @@ void tst_QScriptJSTestSuite::runTestFunction(int testIndex) actual.toString(), expect.toString(), relpath, lineNumber); - QTest::newRow(description.toLatin1()) << rec; + QTest::newRow(description.toUtf8()) << rec; } } if (!hasData) -- cgit v1.2.1