Write valid UTF8 characters without escaping.

Authored by vandenoever on Feb 17 2019, 10:32 PM.

Description

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

Details

Committed
vandenoeverFeb 20 2019, 4:19 PM
Differential Revision
D19107: Write valid UTF8 characters without escaping.
Parents
R237:fbad48f87c1e: GIT_SILENT Upgrade KF5 version to 5.56.0.
Branches
Unknown
Tags
Unknown