~neon/project-neon/libkscreen

Viewing all changes in revision 891.

  • Committer: Frederik Gladhorn
  • Date: 2018-08-13 15:42:58 UTC
  • Revision ID: git-v1:13bc5bcd4bf4eee23fce878d47578655f5133d62
EDID parsing: replace non-printable characters with '-'

Summary:
Simplify first to not have zero terminators suddenly replaced by '-'.
This makes some screen names a lot more readable since the encoding
seems always problematic. According to the standard it should be ipm
437, but even with that code page, many EDIDs seem to produce garbage.
Local8Bit also doesn't make much sense, so use Latin1 as a good
compromise and replace everything that's not in range.

Reviewers: #plasma, mart

Reviewed By: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14549

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: