sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
8.92k stars 227 forks source link

Hexyl show garbage on LXTerminal #165

Closed raspiduino closed 1 year ago

raspiduino commented 1 year ago

I'm on Debian 11 on Linux Deploy (a kind of chroot for Android). My phone has an arm64 SoC.

I have installed the arm64 version of Hexyl using apt, as you can see in the picture. My LXTerm version is 0.4.0:

image

When I open any binary file using Hexyl, the following things output instead of Hexyl's beautiful interface:

image

I can still read the hex, but the ? character is annoying.

What might be the problem? I think LXTerminal support Unicode, doesn't it?

Originally Linux Deploy set the $LANG variable to C. I tried setting that to en_US.UTF-8 but got the same result

Any ideas?

Thanks!

sharkdp commented 1 year ago

I think LXTerminal support Unicode, doesn't it?

I don't know. Doesn't look like it's properly handling the unicode output. Maybe try something like

echo "😀"

For hexyl, you can try --border=ascii, but that will probably still leave the unicode characters in the panel on the right. You can also try to search the issue tracker for "encoding", I think there have been a few other users with similar problems.

sharkdp commented 1 year ago

I'm closing this due to inactivity. Please feel free to comment in case it should be re-opened.