Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Gaps in tree-view lines with musl libc #133

Open
stevenhoneyman opened this issue Oct 3, 2014 · 2 comments
Open

Gaps in tree-view lines with musl libc #133

stevenhoneyman opened this issue Oct 3, 2014 · 2 comments

Comments

@stevenhoneyman
Copy link

Hi. Do you have any ideas as to what causes this display behaviour:

(normal glibc)
2014-10-02_t234820_225x89_scrot

(musl libc)
2014-10-02_t234755_247x107_scrot

It only happens with musl libc, but "tree 1.7.0" uses the same characters to display lines, and that works fine. Both are using the latest snapshot of ncurses, both on the same host, same terminal, same font.

@hishamhm
Copy link
Owner

hishamhm commented Oct 6, 2014

The one on top is using ncurses in Unicode mode, the second one is in ASCII mode. What's the value of the $LANG and $LC_ALL variables on each case? To get Unicode mode, htop has to be compiled with --enable-unicode, and the libc must support locales such as en_US.UTF-8.

@stevenhoneyman
Copy link
Author

Sorry for the delay in replying. I've just tested again using the latest upstream source of both musl libc & ncurses, and I still get this result. I am using --enable-unicode, and $LC_ALL is set to en_GB.UTF-8 in both cases. $LANG is unset.

Here is another program I compiled using the exact same terminal, libraries, variables, etc (the program is nbwmon):
2014-10-16_t202410_195x90_scrot

That's the bit that's confusing me - all other programs that link to libncursesw.a work as expected. It's only htop that I've seen so far have this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants