Skip to content
  • Frederik Gladhorn's avatar
    EDID parsing: replace non-printable characters with '-' · 13bc5bcd
    Frederik Gladhorn authored
    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
    13bc5bcd