Re: [dev] [dwm] crash on xsetroot emoji character

From: Gaetan Bisson <>
Date: Tue, 25 Oct 2016 01:44:22 -1000

[2016-10-25 00:09:42 -1000] Gaetan Bisson:
> I'm running the latest git snapshot of dwm on Arch Linux. It crashes
> (and the X server along with it) deterministically when I run:
> xsetroot -name $(printf '\xf0\x9f\xa4\x93')

This can be "fixed" by changing the return statement in drw.c's
utf8decodebyte() from:

        return (unsigned char)c & ~utfmask[*i];

to just:

        return (unsigned char)c;

And dwm simply displays little squares in place of the emoji (other UTF8
characters seem to be displayed normally). Don't ask me why, I don't
speak Unicode...


Received on Tue Oct 25 2016 - 13:44:22 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 25 2016 - 13:48:13 CEST