|
From: Dave T. <duk...@gm...> - 2011-09-22 21:29:34
|
On 20 September 2011 20:57, Dave Tapley <duk...@gm...> wrote: > Hi Eric, > > Am I correct in recalling that you did some of the work to get wxHaskell > supporting unicode? > > I've using wxHaskell with wxWidgets 2.9.2 (the latest development release) > and it seems that any attempt to get back a wxString in Haskell code will > result in a "Prelude.chr: bad argument:" crash at run time; I've verified > that the same code works correctly with wxWidgets 2.8. > > A good example is ./samples/wx/ListCtrl.hs, you will get the crash when you > click on an item in the list. > > Now the good news is that this is almost certainly related to the changes to > unicode handling in wxWidgets: > http://docs.wxwidgets.org/2.9/overview_changes_since28.html > > But I thought I'd send out a message asking for a sanity check before I get > too busy working on fixing it. > > Dave, > Good news everyone! This is fixed, at least for GTK2 with wx-2.9, I don't know if it breaks building against previous versions, perhaps someone would like to find out? Dave, Patch attached. |