# HG changeset patch # User Anselm R Garbe # Date 1214816265 -3600 # Node ID af0f92dd5ab6d3fe3308efd0be39e5a286f13c9b # Parent 45e486845a1feea348c247ccddcd20012e2268ca locale update diff -r 45e486845a1f -r af0f92dd5ab6 dwm.c --- 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");