[PATCH] D29802: opt-viewer: fix HtmlFormatter encoding

Adam Nemet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 21:01:45 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL294710: opt-viewer: fix HtmlFormatter encoding (authored by anemet).

Changed prior to commit:
  https://reviews.llvm.org/D29802?vs=87924&id=87961#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D29802

Files:
  llvm/trunk/utils/opt-viewer/opt-viewer.py


Index: llvm/trunk/utils/opt-viewer/opt-viewer.py
===================================================================
--- llvm/trunk/utils/opt-viewer/opt-viewer.py
+++ llvm/trunk/utils/opt-viewer/opt-viewer.py
@@ -183,7 +183,7 @@
 </html>
             '''.format(filename), file=self.stream)
 
-        self.html_formatter = HtmlFormatter()
+        self.html_formatter = HtmlFormatter(encoding='utf-8')
         self.cpp_lexer = CppLexer()
 
     def render_source_line(self, linenum, line):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29802.87961.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170210/2b6c6150/attachment.bin>


More information about the llvm-commits mailing list