jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.49k stars 611 forks source link

Chinese (utf-8) character display problem #1294

Closed echoonly closed 1 year ago

echoonly commented 1 year ago

Hi, I have met a problem with the display of Chinese (utf-8) characters. The Chinese contained in the commit message or code will be displayed as a ~ symbol when viewed in tig: iShot_2023-08-29_17 04 01

git log command output is normal: iShot_2023-08-29_17 17 53

I checked the previous issue, which mentioned that it is necessary to link to the ncursesw to support UTF-8 character display. But, I have compiled tig with ncursesw using git source, tig --version output is: image

The compilation command:

make configure && ./configure --prefix=${DEST_PATH}/tig
make -j 4 && make install

The output related to ncursesw when the configure command is executed is: image

Is there anything wrong with this process? Thank you!

koutcher commented 1 year ago

The process looks correct. It seems not all characters are affected as the third and last are ok, so the problem could be somewhere else. Centos/RHEL 7 I believe, based on the libraries versions. Do you have an example of accessible repository where you see the problem ?

echoonly commented 1 year ago

Yes, my os is Centos 7

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.6.1810 (Core)
Release:        7.6.1810
Codename:       Core

Do you have an example of accessible repository where you see the problem ?

I don't quite understand what example you need.