Index: utils/lit/lit/builtin_commands/cat.py =================================================================== --- utils/lit/lit/builtin_commands/cat.py +++ utils/lit/lit/builtin_commands/cat.py @@ -48,7 +48,7 @@ contents = fileToCat.read() if show_nonprinting: contents = convertToCaretAndMNotation(contents) - sys.stdout.write(contents) + sys.stdout.write(contents.decode("utf-8")) sys.stdout.flush() fileToCat.close() except IOError as error: