This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGb3205e2ace43: [scan-view] Explicitly use utf-8 in send_string (authored by Tomas Rix <t...@juniper.net>, committed by serge-sans-paille).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D83984/new/ https://reviews.llvm.org/D83984 Files: clang/tools/scan-view/share/ScanView.py Index: clang/tools/scan-view/share/ScanView.py =================================================================== --- clang/tools/scan-view/share/ScanView.py +++ clang/tools/scan-view/share/ScanView.py @@ -744,7 +744,7 @@ return f def send_string(self, s, ctype='text/html', headers=True, mtime=None): - encoded_s = s.encode() + encoded_s = s.encode('utf-8') if headers: self.send_response(200) self.send_header("Content-type", ctype)
Index: clang/tools/scan-view/share/ScanView.py =================================================================== --- clang/tools/scan-view/share/ScanView.py +++ clang/tools/scan-view/share/ScanView.py @@ -744,7 +744,7 @@ return f def send_string(self, s, ctype='text/html', headers=True, mtime=None): - encoded_s = s.encode() + encoded_s = s.encode('utf-8') if headers: self.send_response(200) self.send_header("Content-type", ctype)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits