Re: [dwm] dwm-2.6 / dmenu-1.6

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Sat, 9 Dec 2006 10:21:45 +0100

On Sat, Dec 09, 2006 at 12:49:27AM +0100, Christian Garbs wrote:
> On Fri, Dec 08, 2006 at 09:12:56PM +0100, Christian Garbs wrote:
>
> > My font is -misc-fixed-medium-r-*-*-13-*-*-*-*-*-*-*
> > Umlauts work fine for me, but I had problems with Japanese Characters
> > (wide chars).
> >
> > The attached patch fixed this for me. It now allows even Japanese
> > Kana and Kanji to be displayed in the title bar (e.g. when surfing to
> > http://www.amazon.co.jp).
>
> I just realized that XmbTextExtends() must be changed, too.
> Currently wide characters are not counted as being wide when the
> text width is calculated.

Actually the Xutf8 extension is technically nothing else than:

orig_locale = setlocale(LC_CTYPE, NULL);
setlocale(LC_CTYPE, "UTF-8");
Xmb* stuff
setlocale(LC_CTYPE, orig_locale);

Besides this Xutf8 is rarely used because it is nearly
unportable in !Linux and !BSD environemnts (e.g. Sun, HP, AIX,
...).

Thus, I ask: are you sure you use a UTF-8 capable locale in your
setup?

Regards,

-- 
 Anselm R. Garbe >< http://suckless.org/~arg/ >< GPG key: 0D73F361
Received on Sat Dec 09 2006 - 10:21:45 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:33:39 UTC