only setting LC_CTYPE
250aa199
2 file(s) · +2 −3
| 3 | 3 | */ |
|
| 4 | 4 | ||
| 5 | 5 | #include <X11/Xlib.h> |
|
| 6 | - | #include <X11/Xlocale.h> |
|
| 7 | 6 | ||
| 8 | 7 | #define FONT "fixed" |
|
| 9 | 8 | #define NORMBGCOLOR "#333366" |
|
| 10 | 9 | #define NORMFGCOLOR "#cccccc" |
|
| 11 | 10 | #define SELBGCOLOR "#666699" |
|
| 12 | 11 | #define SELFGCOLOR "#eeeeee" |
|
| 13 | - | #define SPACE 30 /* px */ |
|
| 12 | + | #define SPACE 30 /* px */ |
|
| 14 | 13 | ||
| 15 | 14 | /* color */ |
|
| 16 | 15 | enum { ColFG, ColBG, ColLast }; |
| 84 | 84 | int i, n; |
|
| 85 | 85 | ||
| 86 | 86 | missing = NULL; |
|
| 87 | - | setlocale(LC_ALL, ""); |
|
| 87 | + | setlocale(LC_CTYPE, ""); |
|
| 88 | 88 | if(dc.font.set) |
|
| 89 | 89 | XFreeFontSet(dpy, dc.font.set); |
|
| 90 | 90 | dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |