[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please allow dwm-tools 2-2



On Sat, Dec 16, 2006 at 04:24:59PM +0100, Daniel Baumann wrote:
> dmenu suffers the same utf problems as dwm did, please allow the upload
> of dwm-tools 2-2 to testing, debdiff is attached.

> --- dwm-tools-2.orig/debian/patches/99-dmenu-utf.dpatch
> +++ dwm-tools-2/debian/patches/99-dmenu-utf.dpatch
> @@ -0,0 +1,24 @@
> +#!/bin/sh /usr/share/dpatch/dpatch-run
> +## 99-dmenu-utf.dpatch by Anselm R. Garbe <garbeam@gmail.com>
> +##
> +## DP: Fixes utf support (taken from dmenu 1.7).
> +
> +@DPATCH@
> +
> +diff -Naur dwm-tools-2.orig/dmenu-1.4/draw.c dwm-tools-2/dmenu-1.4/draw.c
> +--- dwm-tools-2.orig/dmenu-1.4/draw.c	2006-12-16 15:03:41.000000000 +0000
> ++++ dwm-tools-2/dmenu-1.4/draw.c	2006-12-16 15:04:05.000000000 +0000
> +@@ -107,11 +107,8 @@
> + 		if(dc.font.xfont)
> + 			XFreeFont(dpy, dc.font.xfont);
> + 		dc.font.xfont = NULL;
> +-		dc.font.xfont = XLoadQueryFont(dpy, fontstr);
> +-		if (!dc.font.xfont)
> +-			dc.font.xfont = XLoadQueryFont(dpy, "fixed");
> +-		if (!dc.font.xfont)
> +-			eprint("error, cannot init 'fixed' font\n");
> ++		if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)))
> ++			eprint("error, cannot load font: '%s'\n", fontstr);
> + 		dc.font.ascent = dc.font.xfont->ascent;
> + 		dc.font.descent = dc.font.xfont->descent;
> + 	}

How does *not* falling back to using the fixed font fix a utf8 problem?

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/



Reply to: