You are not logged in.

#1 2010-02-15 13:59:20

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

[solved] dwm unicode problem

My dwm 5.7.2 (also happens for a recent hg pull) statusbar fails to display unicode characters for window titles. Tested with Firefox, Sakura, urxvt and xterm. xprop gets it right however. I've tried with terminus and fixed.

static const char font[]            = "-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*";
» locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Last edited by JohannesSM64 (2010-02-15 20:24:39)

Offline

#2 2010-02-15 14:50:47

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [solved] dwm unicode problem

X Core fonts don't support unicode. You need a pango-enabled dwm to make it work. One can be had in the dwm-pango package in AUR. (This also gets you anti-aliased fonts.) This more than doubles the dependencies of dwm, which is why it isn't in upstream.

Offline

#3 2010-02-15 15:53:12

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: [solved] dwm unicode problem

Thanks a lot. Patched my dwm with the pango patch now smile

Offline

#4 2010-02-15 22:17:02

eol
Member
Registered: 2009-05-30
Posts: 23

Re: [solved] dwm unicode problem

ataraxia wrote:

X Core fonts don't support unicode. You need a pango-enabled dwm to make it work.

I guess it isn't really true, here are my settings :

~$ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
(...)

and in config.h

static const char font[]            = "-*-*-medium-*-*-*-14-*-*-*-*-*-*-*";

My dwm isn't pango patched and french accents like éèà for example display fine.

Offline

#5 2010-02-15 23:30:29

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [solved] dwm unicode problem

@eol: Anything that would work in an ISO-8859-1 locale will work fine with your font string. Try displaying some Chinese, or "smart quotes", and it will look wrong.

Offline

Board footer

Powered by FluxBB