JakeWharton / pidcat

Colored logcat script which only shows log entries for a specific application package.
Apache License 2.0
4.81k stars 495 forks source link

Strange Logcat output #178

Open CreatorB opened 2 years ago

CreatorB commented 2 years ago

image

I'm using latest lubuntu 21.10, 5.13.0-28-generic, x86_64 GNU/Linux

also have been followed to install coreutils on README.md

JakeWharton commented 2 years ago

Those are the ANSI control sequences which cause color to be displayed. It's not clear why it works on some lines but not others. Probably some obscure Python quirk I'm not aware of.

ozziefallick commented 2 years ago

I suspect that this would be fixed by the change in https://github.com/JakeWharton/pidcat/issues/97#issuecomment-932760684. I'm going to confirm that it's backwards-compatible with python2, and if so, send a PR.

kmansoft commented 2 years ago

Same here on Ubuntu 22.04, and the fix in #97 helped.

Maybe it's also time to update the #! to python3 :)

pforhan commented 2 months ago

so this change was to fix a unicode issue in the past... probably what's needed is to utf-encode the actual logcat content, but not the formatting pieces