author | Anselm R Garbe <garbeam@gmail.com> |
Mon, 30 Jun 2008 09:57:45 +0100 | |
changeset 1302 | af0f92dd5ab6 |
parent 1301 | 45e486845a1f |
child 1303 | 01064454b311 |
--- a/dwm.c Tue Jun 24 12:40:48 2008 +0100 +++ b/dwm.c Mon Jun 30 09:57:45 2008 +0100 @@ -1704,7 +1704,9 @@ else if(argc != 1) eprint("usage: dwm [-v]\n"); - setlocale(LC_CTYPE, ""); + if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) + fprintf(stderr, "warning: no locale support\n"); + if(!(dpy = XOpenDisplay(0))) eprint("dwm: cannot open display\n");