From 3e60c5d836c1f9f3b4415782de48476663943274 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Mon, 25 Aug 2008 09:38:19 +0100 Subject: reverted setlocale() call --- dmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dmenu.c') 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"); -- cgit v1.2.3-13-gbd6f