aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigtest.h
diff options
context:
space:
mode:
authorJos van den Oever <jos@vandenoever.info>2019-02-17 23:32:35 +0100
committerJos van den Oever <jos@vandenoever.info>2019-02-20 17:19:14 +0100
commit2cdcd4f30666fd1095ab7cf31361e404db871075 (patch)
tree4875c4c3a78583342821814b53444443278448e4 /autotests/kconfigtest.h
parentfbad48f87c1e62b1d56215eba76a7bb7e2d22f1e (diff)
downloadkconfig-2cdcd4f30666fd1095ab7cf31361e404db871075.tar.gz
kconfig-2cdcd4f30666fd1095ab7cf31361e404db871075.tar.bz2
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
Diffstat (limited to 'autotests/kconfigtest.h')
-rw-r--r--autotests/kconfigtest.h2
1 files changed, 2 insertions, 0 deletions
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();