From: Anselm R Garbe Date: Mon, 25 Aug 2008 08:38:19 +0000 (+0100) Subject: reverted setlocale() call X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=3e60c5d836c1f9f3b4415782de48476663943274;p=dmenu.git reverted setlocale() call --- diff --git a/dmenu.c b/dmenu.c index d0c63db..18f2a56 100644 --- a/dmenu.c +++ b/dmenu.c @@ -1,6 +1,7 @@ /* See LICENSE file for copyright and license details. */ #define _BSD_SOURCE #include +#include #include #include #include @@ -705,7 +706,7 @@ main(int argc, char *argv[]) { else eprint("usage: dmenu [-i] [-b] [-fn ] [-nb ] [-nf ]\n" " [-p ] [-sb ] [-sf ] [-v]\n"); - if(!XSupportsLocale()) + if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) fprintf(stderr, "warning: no locale support\n"); if(!(dpy = XOpenDisplay(0))) eprint("dmenu: cannot open display\n");