This is an archive of the discontinued LLVM Phabricator instance.

opt-viewer: fix HtmlFormatter encoding
ClosedPublic

Authored by bcain on Feb 9 2017, 5:29 PM.

Details

Summary

Small fix to HtmlFormatter, defaults to ascii encoding, so utf-8 output may get UnicodeEncodeError: 'ascii' codec can't encode character ... ordinal not in range(128) during write.

Diff Detail

Repository
rL LLVM

Event Timeline

bcain created this revision.Feb 9 2017, 5:29 PM
anemet accepted this revision.Feb 9 2017, 5:30 PM

LGTM, thanks!

This revision is now accepted and ready to land.Feb 9 2017, 5:30 PM
This revision was automatically updated to reflect the committed changes.