From c3af8065ce329e795ceb0bde3d0393414e36b577 Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Tue, 5 Dec 2006 13:30:37 +0100 Subject: [PATCH] only setting LC_CTYPE --- dmenubar/dmenu.h | 3 +-- dmenubar/draw.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dmenubar/dmenu.h b/dmenubar/dmenu.h index 1eb57ba..08d7605 100644 --- a/dmenubar/dmenu.h +++ b/dmenubar/dmenu.h @@ -3,14 +3,13 @@ */ #include -#include #define FONT "fixed" #define NORMBGCOLOR "#333366" #define NORMFGCOLOR "#cccccc" #define SELBGCOLOR "#666699" #define SELFGCOLOR "#eeeeee" -#define SPACE 30 /* px */ +#define SPACE 30 /* px */ /* color */ enum { ColFG, ColBG, ColLast }; diff --git a/dmenubar/draw.c b/dmenubar/draw.c index 56a1beb..29289a4 100644 --- a/dmenubar/draw.c +++ b/dmenubar/draw.c @@ -84,7 +84,7 @@ setfont(const char *fontstr) { int i, n; missing = NULL; - setlocale(LC_ALL, ""); + setlocale(LC_CTYPE, ""); if(dc.font.set) XFreeFontSet(dpy, dc.font.set); dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);