From 3fb9cc30fdbec92543189e490be20d9d4d90ba6f Mon Sep 17 00:00:00 2001 From: Georgy A. Shepelev Date: Wed, 9 Dec 2009 12:48:05 +0300 Subject: [PATCH] [PATCH] xdm: Adding utf8-support in all prompt-/greeting-strings that belongs xdm: to the login widget. Signed-off-by: Georgy A. Shepelev Tested-by: Georgy A. Shepelev --- greeter/Login.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/greeter/Login.c b/greeter/Login.c index 29a8c31..782e752 100644 --- a/greeter/Login.c +++ b/greeter/Login.c @@ -282,7 +282,7 @@ XmuXftTextWidth(Display *dpy, XftFont *font, FcChar8 *string, int len); # define DRAW_STRING(f, x, y, m, l) \ /* Debug("DRAW_STRING(%s, %d, %d, %s, %d)\n", #f, x, y, m, l); */ \ - XftDrawString8 (w->login.draw, &w->login.f##color, w->login.f##Face, \ + XftDrawStringUtf8 (w->login.draw, &w->login.f##color, w->login.f##Face, \ x, y, (FcChar8 *) m, l) #else @@ -1656,7 +1656,7 @@ XmuXftTextWidth(Display *dpy, XftFont *font, FcChar8 *string, int len) { XGlyphInfo extents; - XftTextExtents8 (dpy, font, string, len, &extents); + XftTextExtentsUtf8 (dpy, font, string, len, &extents); return extents.xOff; } -- 1.6.4