Re: [dev] [PATCH] dmenu: Fix segfault on systems with broken locale support

2013-11-21 Thread Martti Kühne
On Mon, Nov 18, 2013 at 8:15 PM, Ismael Luceno wrote: > uh. why not call XOpenIM() only after setlocale(LC_ALL, ""); first, like you have to do with ncurses? Because that would not require you to set the "C" locale at all, as it's also not the case with st. In st, we do something similar, only t

[dev] [PATCH] dmenu: Fix segfault on systems with broken locale support

2013-11-18 Thread Ismael Luceno
Fix segfault on systems with broken locale support --- dmenu.c.orig 2013-11-16 10:52:03.970786705 -0300 +++ dmenu.c 2013-11-18 16:07:45.422148846 -0300 @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -590,7 +591,13 @@ CWOverride