[Xmonad] i18n in xprompt

Andrea Rossato mailing_list at istitutocolli.org
Mon Oct 8 03:56:10 EDT 2007


On Fri, Oct 05, 2007 at 02:51:17PM +0200, Andrea Rossato wrote:
> hi,

Hi,

attached you'll find a new IShellPrompt.hs, since the one I've sent
has a (small) bug: basically toLocale was called but not used.

> When I'll have that function imported XPrompt will be encoding
> independent and I will be able to have only the IShellPrompt, which is
> fully i18n aware, requiring the locale C stuff that is presently in
> IXPromptLib.hsc.

Actually I'm coming to think I'm totally wrong here. XwcLookupString
requires calling setlocale, and so, having this function, is not going
to change anything. In order to have an internationalized prompt we
need to call setlocale, no matter what.

I need to investigate the problem a bit more and possibly find a
cleaner solution. If someone has some hints, ideas or something else
to share, please let me know.

Andrea



More information about the Xmonad mailing list