getting rid of setlocale(), it doesn't seem to make sense with Xmb, artifact of Xutf8 times
c43c692a
1 file(s) · +1 −2
| 1 | 1 | /* See LICENSE file for copyright and license details. */ |
|
| 2 | 2 | #define _BSD_SOURCE |
|
| 3 | 3 | #include <ctype.h> |
|
| 4 | - | #include <locale.h> |
|
| 5 | 4 | #include <stdarg.h> |
|
| 6 | 5 | #include <stdio.h> |
|
| 7 | 6 | #include <stdlib.h> |
|
| 719 | 718 | else |
|
| 720 | 719 | eprint("usage: dmenu [-i] [-b] [-fn <font>] [-nb <color>] [-nf <color>]\n" |
|
| 721 | 720 | " [-p <prompt>] [-sb <color>] [-sf <color>] [-v]\n"); |
|
| 722 | - | if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
|
| 721 | + | if(!XSupportsLocale()) |
|
| 723 | 722 | fprintf(stderr, "warning: no locale support\n"); |
|
| 724 | 723 | if(!(dpy = XOpenDisplay(0))) |
|
| 725 | 724 | eprint("dmenu: cannot open display\n"); |
|