-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with encoding still exists on Mac OS X and Debian #330
Comments
@jaseemabid Hi, I think it was you who mentioned this. If you can provide a script to create this repo that would be really useful. I'd also like to know what version of tig you are using and against which ncurses library you link. |
@jonas The screenshot is from debian. tig installed from source 'coz the package was really old.
Test script:
|
The smiley character is something iterm can render when its typed in, but git or tig won't show it again. See output of the script when run. |
Apart from the smiley character which I don't think it is possible to get ncurses to draw correctly, it looks like the OS X version is OK. This suggests that the version you compiled on Debian is not linked with ncursesw. As mentioned in the INSTALL file Ncurses with wide character support (ncursesw) is required to properly handle UTF-8 encoded strings. The ncursesw package needs to be installed separately on Debian if I remember correctly. To configure the build to use the ncursesw package you can create a
|
@jaseemabid Did you compile tig with ncursesw or not? I am asking because I cannot reproduce this locally. See my previous comment for more information. |
@jonas I think characters which cannot be rendered like the smiley should be replaced with a |
The default git behaviour might be the best to copy.
|
I dont see any change after compiling with nursesw. Can I verify if it was build with the correct headers? Maybe along with |
Using
in my config.make solves that issue. Great :-) |
I have to add that the issue is still there with both v2.2 and So ncursew is definitely there and working (even though it's being installed simply as ncurses). And even an
To reproduce
Related
|
Fixed by @rolandwalker in #644 |
yaaay 🙌 thanks ♥ and cheers 🍻 |
From user: I still have this issue. Installed on mac with brew, apt-get on deb stable. Screenshot along.
References #72
The text was updated successfully, but these errors were encountered: