Use system codepage when reading from piped command
ClosedPublic

Authored by nowicki on Feb 26 2019, 12:41 PM.

Details

Summary

When using a piped command to preprocess the message the response may contain locale-specific characters. When converting using Latin1 those characters are mangled.

This fixes preprocessing messages which contain Unicode characters.

Test Plan

Use a piped command that generates non-ASCII characters in the response. Make sure that these characters appear properly in the editor window.

Diff Detail

Repository
R94 PIM: Message Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nowicki created this revision.Feb 26 2019, 12:41 PM
Restricted Application added a subscriber: kde-pim. · View Herald TranscriptFeb 26 2019, 12:41 PM
nowicki requested review of this revision.Feb 26 2019, 12:41 PM
dvratil accepted this revision.Feb 26 2019, 4:39 PM
This revision is now accepted and ready to land.Feb 26 2019, 4:39 PM
This revision was automatically updated to reflect the committed changes.