diff main.c @ 619:bda4880c462d

with this patch everything works fine for me
author arg@mig29
date Thu, 07 Dec 2006 10:02:46 +0100
parents f617c75a8405
children 107719a9ce3b
line wrap: on
line diff
--- a/main.c	Thu Dec 07 09:49:45 2006 +0100
+++ b/main.c	Thu Dec 07 10:02:46 2006 +0100
@@ -4,6 +4,7 @@
 
 #include "dwm.h"
 #include <errno.h>
+#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -240,6 +241,7 @@
 	}
 	else if(argc != 1)
 		eprint("usage: dwm [-v]\n");
+	setlocale(LC_CTYPE, "");
 	dpy = XOpenDisplay(0);
 	if(!dpy)
 		eprint("dwm: cannot open display\n");