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

From: Martti Kühne <>
Date: Thu, 21 Nov 2013 09:19:58 +0100

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 there the setlocale call is
limited to LC_CTYPE even. I didn't look further into the issue, it's
just that there locale handling seems to be done in an even messier
way with XSetLocaleModifiers() calls all over the place. I guess it
would be nice if we had some cleaned up x initialisation in drw.c that
deals with these things without greeting its creators early.

Received on Thu Nov 21 2013 - 09:19:58 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 21 2013 - 09:24:06 CET