fvwm3 icon indicating copy to clipboard operation
fvwm3 copied to clipboard

FvwmIconMan crashes when trying to display some utf-8 characters.

Open somiaj opened this issue 3 years ago • 5 comments

FvwmIconMan, using the default config, crashes when trying to display some utf-8 characters. For example the following character crashes FvwmIconMan

https://www.compart.com/en/unicode/U+1F479

With some further testing it is related to the font. The font from the default config is *FvwmIconMan: Font "xft:Sans:Bold:size=8:antialias=True". Setting the font to *FvwmIconMan: Font "", it no longer crashes and just displays a empty box for the character it cannot find. So this maybe a combination of the font and FvwmIconMan.

If possible, FvwmIconMan should better deal with some utf-8 characters in some fonts.

somiaj avatar Oct 15 '21 07:10 somiaj

Hi @somiaj

Well... I can't get FvwmIconMan to crash.

Can you see if a corefile is generated, and add a backtrace so I can see what's happening?

ThomasAdam avatar Oct 15 '21 16:10 ThomasAdam

I tried to set the icon man font to "" and it did nothing for the problem.

This happens on the default config on 1.0.4 with the provided problem website.

polarbub avatar Feb 23 '22 22:02 polarbub

Hey @polarbub

I'll try and find time to look at this, but it won't be any time soon.

Do you see the same problem if you also try to start fvwm3 as:

fvwm3 -f /dev/null

ThomasAdam avatar Feb 23 '22 22:02 ThomasAdam

No, because no FvwmIconMan was started

polarbub avatar Feb 24 '22 02:02 polarbub

I tried to set the icon man font to "" and it did nothing for the problem.

I just restarted x and now this fix works. The charaters that would crash it before don't show up at all in the icon manager but the rest of the titles do. Also the font is the default font for x and it doesn't look very good.

polarbub avatar Feb 24 '22 02:02 polarbub

This is actually an issue in XFT that was fixed three years ago, and merged 3 months ago.

https://gitlab.freedesktop.org/xorg/lib/libxft/-/commit/6a08279ee80dbd1a226592d7f18c862c2e4a7d3a

Upgrade to xft 2.3.6 to get color emoji's working correctly.

somiaj avatar Nov 06 '22 23:11 somiaj

Alright, this works. Thanks!

polarbub avatar Nov 07 '22 16:11 polarbub