Skip to content

cannot display unicode char correctly #920

@noodlefighter

Description

@noodlefighter

I have read the issues about unicode, have known that linking libncursesw can solve those trouble.
but i think i find a new problem.

typing tig, it shows:
image

typing sudo tig, it shows:
image

./configure logging:

...
checking for working ncursesw/curses.h... yes
checking for working ncursesw.h... no
checking for working ncurses.h... yes
checking for tgetent... no
checking for tgetent in -lncursesw... yes
checking which library has the termcap functions... using libncursesw
...

check the libraries:

r@r-work ~/git/nkf $ ldd /usr/local/bin/tig
	linux-vdso.so.1 =>  (0x00007ffe765ca000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f9ec9594000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f9ec936b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9ec8fa1000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9ec8d9d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9ec97c3000)

r@r-work ~/git/nkf $ ldconfig -p | grep libncursesw
	libncursesw.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncursesw.so.5
	libncursesw.so.5 (libc6) => /lib/i386-linux-gnu/libncursesw.so.5
r@r-work ~/git/nkf $ sudo bash
r-work nkf # ldconfig -p | grep libncursesw
	libncursesw.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncursesw.so.5
	libncursesw.so.5 (libc6) => /lib/i386-linux-gnu/libncursesw.so.5

that is say, tig has link to libncursesw, but it display correctly in ROOT permission only..
have any idea? THX :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions