Re: [dwm] What am I doing wrong with displaying utf-8 string?

From: Christian Garbs <>
Date: Wed, 6 Aug 2008 22:42:11 +0200

On Wed, Aug 06, 2008 at 09:55:55AM +0200, Antoni Grzymala wrote:
> Hi,
> there seems to be some inconsistent utf-8 handling id dwm's and dmenu's
> text render code.

I'm still using dwm-4.7 and with the following two patches everything
is alright for me (should be applicable to current dwm, too):;f=05_patch_dwm_mitch_utf8widechars.diff;f=02_patch_dmenu_mitch_utf8widechars.diff


$ xtermset -title 日本語
$ { echo 猫; echo 犬; echo 何; } | dmenu

are handled and displayed correctly by dwm and dmenu.

I use the font "-misc-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" in dwm and
"-misc-fixed-medium-r-*-*-13-*-*-*-*-*-*-*" in dmenu (should really be the
same, I should add the "normal" to dmenu for consistency).

I have _not_ crosschecked this without my patches, so this could be some
kind of Cargo Cult worship :-) On the other hand, UTF-8 issue like yours
come up in this mailing list from time to time...


Suche nie nach Ursachen, schaffe Lösungen.
(Herr Melzig zum Thema MS-Produkte)

Received on Wed Aug 06 2008 - 20:42:11 UTC

This archive was generated by hypermail 2.2.0 : Wed Aug 06 2008 - 21:00:05 UTC