Eric,

That sounds like a very sensible guess, but I don't think it's the
right one. I've checked that my wxWidgets implementation is indeed
Unicode enabled.

Any other ideas?

Thanks
Neil

On 8/3/07, Eric Kow <[EMAIL PROTECTED]> wrote:
> On 8/3/07, Neil Bartlett <[EMAIL PROTECTED]> wrote:
> > I'm having some problems with wxHaskell applications on Mac OS X. The
> > problem is that all Strings on the user interface show only their
> > first character. See the following screenshot of the standard ListCtrl
> > sample application, which should make the problem clear:
>
> That sounds like a Unicode problem.   Is your wxWidgets Unicode enabled?
>
> I'm guessing you're using the darcs version of wxhaskell
>   darcs get http://darcs.haskell.org/wxhaskell
>
> (which should work with your 2.6 and be fine)
>
> The basic problem is that wxHaskell is trying to pass its 32 bits
> worth of Char to a regular C string, so instead of "Hello World", the
> C end sees "H\0\0\0..." with the expected results.  But enabling
> Unicode in wxWidgets lets it use wide characters instead of the
> standard 8 bits.  (My understanding of this may be buggy btw, really
> tend to be hazy on the whole how computers work thing)
>
> --
> Eric Kow                     http://www.loria.fr/~kow
> PGP Key ID: 08AC04F9         Merci de corriger mon français.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
wxhaskell-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to