mirror of git://git.suckless.org/dwm
also setting LC_CTYPE only
This commit is contained in:
parent
9bd9ea423e
commit
71b82fb1f6
2
draw.c
2
draw.c
|
@ -170,8 +170,8 @@ setfont(const char *fontstr) {
|
||||||
char **missing, *def;
|
char **missing, *def;
|
||||||
int i, n;
|
int i, n;
|
||||||
|
|
||||||
|
setlocale(LC_CTYPE, "");
|
||||||
missing = NULL;
|
missing = NULL;
|
||||||
setlocale(LC_ALL, "");
|
|
||||||
if(dc.font.set)
|
if(dc.font.set)
|
||||||
XFreeFontSet(dpy, dc.font.set);
|
XFreeFontSet(dpy, dc.font.set);
|
||||||
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
|
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
|
||||||
|
|
Loading…
Reference in New Issue