From 3d976301a6f27b5c698b4f9a925fd03745b2b6f1 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Mon, 25 Aug 2008 09:38:19 +0100 Subject: [PATCH] reverted setlocale() call --- dmenubar/dmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index d0c63db..18f2a56 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/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");