Mercurial > dwm-meillo
comparison draw.c @ 614:9ae187cb9ea8
also setting LC_CTYPE only
author | arg@mig29 |
---|---|
date | Tue, 05 Dec 2006 13:31:29 +0100 |
parents | 5f4bb0a58f32 |
children | ae5c3e06f7e2 |
comparison
equal
deleted
inserted
replaced
613:5f4bb0a58f32 | 614:9ae187cb9ea8 |
---|---|
168 void | 168 void |
169 setfont(const char *fontstr) { | 169 setfont(const char *fontstr) { |
170 char **missing, *def; | 170 char **missing, *def; |
171 int i, n; | 171 int i, n; |
172 | 172 |
173 setlocale(LC_CTYPE, ""); | |
173 missing = NULL; | 174 missing = NULL; |
174 setlocale(LC_ALL, ""); | |
175 if(dc.font.set) | 175 if(dc.font.set) |
176 XFreeFontSet(dpy, dc.font.set); | 176 XFreeFontSet(dpy, dc.font.set); |
177 dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); | 177 dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
178 if(missing) { | 178 if(missing) { |
179 while(n--) | 179 while(n--) |