From: arg@mig29 Date: Tue, 5 Dec 2006 12:30:37 +0000 (+0100) Subject: only setting LC_CTYPE X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=250aa199bbc3f12a538ac3162d8065d44fab8c22;p=dmenu.git only setting LC_CTYPE --- diff --git a/dmenu.h b/dmenu.h index 1eb57ba..08d7605 100644 --- a/dmenu.h +++ b/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/draw.c b/draw.c index 56a1beb..29289a4 100644 --- a/draw.c +++ b/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);