diff --git a/pidcat.py b/pidcat.py index efaa078..8d04daa 100755 --- a/pidcat.py +++ b/pidcat.py @@ -302,7 +302,7 @@ def tag_in_tags_regex(tag, tags): linebuf += colorize(' ' * (header_size - 1), bg=WHITE) linebuf += ' PID: %s UID: %s GIDs: %s' % (line_pid, line_uid, line_gids) linebuf += '\n' - print(linebuf) + print(linebuf.encode('utf-8')) last_tag = None # Ensure next log gets a tag printed dead_pid, dead_pname = parse_death(tag, message) @@ -312,7 +312,7 @@ def tag_in_tags_regex(tag, tags): linebuf += colorize(' ' * (header_size - 1), bg=RED) linebuf += ' Process %s (PID: %s) ended' % (dead_pname, dead_pid) linebuf += '\n' - print(linebuf) + print(linebuf.encode('utf-8')) last_tag = None # Ensure next log gets a tag printed # Make sure the backtrace is printed after a native crash