X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=draw.c;h=eeb3e568de3265452d19e5023e7c2e30ba17ae3a;hb=d42c3ba2dc249a77f1f2417a1c72a3b7744fd932;hp=e4b2b88a5e6bebc57a1ecf90a7c3c6c25b3275b0;hpb=857d825eeb9f0d91a3d8a2507e8955196646f9a1;p=dwm.git diff --git a/draw.c b/draw.c index e4b2b88..eeb3e56 100644 --- a/draw.c +++ b/draw.c @@ -4,7 +4,6 @@ #include "dwm.h" #include #include -#include /* static */ @@ -167,16 +166,13 @@ getcolor(const char *colstr) { void setfont(const char *fontstr) { - char *def, *lc, **missing; + char *def, **missing; int i, n; - lc = setlocale(LC_CTYPE, NULL); - setlocale(LC_CTYPE, "UTF-8"); missing = NULL; if(dc.font.set) XFreeFontSet(dpy, dc.font.set); dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); - setlocale(LC_CTYPE, lc); if(missing) { while(n--) fprintf(stderr, "missing fontset: %s\n", missing[n]);