[PATCH] D37661: [sancov] coverage-report-server.py: ServerHandler(): open file as UTF8
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 12:00:53 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL313063: [sancov] coverage-report-server.py: ServerHandler(): open file as UTF8 (authored by lebedevri).
Changed prior to commit:
https://reviews.llvm.org/D37661?vs=114480&id=114875#toc
Repository:
rL LLVM
https://reviews.llvm.org/D37661
Files:
llvm/trunk/tools/sancov/coverage-report-server.py
Index: llvm/trunk/tools/sancov/coverage-report-server.py
===================================================================
--- llvm/trunk/tools/sancov/coverage-report-server.py
+++ llvm/trunk/tools/sancov/coverage-report-server.py
@@ -160,7 +160,7 @@
linemap = self.symcov_data.compute_linemap(filename)
- with open(filepath, 'r') as f:
+ with open(filepath, 'r', encoding='utf8') as f:
content = "\n".join(
["<span class='{cls}'>{line} </span>".format(
line=html.escape(line.rstrip()),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37661.114875.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170912/0fb84c55/attachment.bin>
More information about the llvm-commits
mailing list