From 2cdcd4f30666fd1095ab7cf31361e404db871075 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Sun, 17 Feb 2019 23:32:35 +0100 Subject: Write valid UTF8 characters without escaping. Summary: commit 6a18528 introduced escaping of bytes >= 127 to ensure that KConfig files are valid UTF8. The simplistic approach with a cutoff results in many escaped bytes where it is not required. Especially non-western configuration files would have many escapes. This commit fixes that by only escaping bytes that are not valid UTF8. BUG: 403557 FIXED-IN: 5.56 Test Plan: ninja && ninja test Reviewers: dfaure, arichardson, apol, #frameworks, thiago Subscribers: rapiteanu, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D19107 --- autotests/kconfigtest.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autotests/kconfigtest.h') diff --git a/autotests/kconfigtest.h b/autotests/kconfigtest.h index 0715f45e..26d8e7f5 100644 --- a/autotests/kconfigtest.h +++ b/autotests/kconfigtest.h @@ -64,6 +64,8 @@ private Q_SLOTS: void testReparent(); void testAnonymousConfig(); void testQByteArrayUtf8(); + void testQStringUtf8_data(); + void testQStringUtf8(); void testSubGroup(); void testAddConfigSources(); -- cgit v1.2.1