[llvm-bugs] [Bug 33548] New: coverage-report-server.py: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 106: ordinal not in range(128)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 21 10:23:54 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33548

            Bug ID: 33548
           Summary: coverage-report-server.py: UnicodeDecodeError: 'ascii'
                    codec can't decode byte 0xc3 in position 106: ordinal
                    not in range(128)
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at lists.llvm.org

Found when testing that oss-fuzz's
$ python infra/helper.py coverage $PROJECT_NAME $fuzzer
works for a new project.

Once i try to view a file with non-ascii symbols, i see following on the
console:
----------------------------------------
Exception happened during processing of request from ('172.17.0.1', 39196)
Traceback (most recent call last):
  File "/usr/lib/python3.5/socketserver.py", line 313, in
_handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.5/socketserver.py", line 341, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.5/socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.5/socketserver.py", line 681, in __init__
    self.handle()
  File "/usr/lib/python3.5/http/server.py", line 422, in handle
    self.handle_one_request()
  File "/usr/lib/python3.5/http/server.py", line 410, in handle_one_request
    method()
  File "/usr/local/bin/coverage-report-server.py", line 168, in do_GET
    for line_no, line in enumerate(f, start=1)])
  File "/usr/local/bin/coverage-report-server.py", line 165, in <listcomp>
    ["<span class='{cls}'>{line} </span>".format(
  File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 106:
ordinal not in range(128)
----------------------------------------

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170621/bd82e5e2/attachment.html>


More information about the llvm-bugs mailing list