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
weechat uses libc's wcswidth #79
Comments
|
We discussed some hours ago about UTF-8 problems in WeeChat, about this answer: http://stackoverflow.com/questions/23526353/how-to-get-ncurses-to-output-astral-plane-unicode-characters/ (the source code example in this question is from me). |
|
Okay, sure. I'm just commenting about this based on the observation that |
|
If glibc is broken, then why not fixing it? |
|
It is not possible to fix glibc and ensure the fix is available everywhere. On Sat, May 10, 2014 at 12:32 AM, Sébastien Helleu <notifications@github.com
|
|
A person has started working on updating glibc's locale data (bug report), tho one person has reported that he couldn't apply the patch. But at least it's being worked on. |
|
Definitely a glibc bug, not WeeChat. And it looks like they're working on the problem, so I close this issue. |
|
Here's a post with a workaround: https://blog.nytsoi.net/2015/05/04/emoji-support-for-weechat |
|
Yup, but that's basically just externalizing the workaround I opened this bug to offer. |
|
It should be fixed in glibc. Overriding |
|
I believe this is fixed in glibc 2.22, but too recent glibc to be in any distribution yet. Changed 2.21 to 2.22 based on the following comment. |
|
It was committed after the 2.21 release, but should be fixed in the next one. |
|
This is fixed in glibc. Don't blame glibc versions, blame your distro for using outdated versions. I've been running glibc from git for awhile without issue. Most distributions are just bad and insecure. As an addendum, weechat did the right thing here. It should never have used its own implementation of wcwidth (/me looks at konsole), this is distinctly the job of the libc and should be fixed there (which it was). Many thanks to Alexandre Oliva and Mike FABIAN for this work. |
|
@Earnestly: not really related, but maybe you have an idea for this problem? #258 (comment) |
|
For some reason I'm having issues getting emojis to display in weechat. I'm running on fedora which has a recent glibc: is it required for me to grab one of the weechat emoji plugins to get this to work? |
|
none of the weechat emoji scripts will fix display bugs. Maybe its a font issue |
thanks. it seems to be working now (not sure what changed since yesterday). emojis are showing up in IRC. The only issue I have now is that emojis aren't showing up in slack (weeslack plugin). I'll see if I can figure out what is going on there. Thanks again @weechatter |
|
@dustymabe i'm having the same issues with slack, did you figure out the cause? |
no luck with figuring it out before my free time ran out :( |
|
@dustymabe, @birdayz: wee-slack doesn't show emojis, only text representations (like |
thanks @trygveaa! Is there an issue we can subscribe to to follow the progress of that feature? |


ghost commentedMay 8, 2014
Weechat uses the libc's wcswidth, which is implemented in terms of the libc's wcwidth, typically. Unfortunately, glibc's wcwidth is rather out of date and therefore untrustworthy. weechat should, instead, import mgk25's wcwidth/wcswidth implementations. I believe this will permit weechat to support Unicode more correctly.
The text was updated successfully, but these errors were encountered: