[Mono-winforms-list] FW: X11 locale support

David Suarez listasdavid at codicesoftware.com
Fri Sep 19 10:05:18 EDT 2008


Hi,

I'm forwarding to this list as maybe mono-osx was not the best place for
this patch. Can anybody review the it, please?

Thanks, 

David

> -----Original Message-----
> From: mono-osx-bounces at lists.ximian.com [mailto:mono-osx-
> bounces at lists.ximian.com] On Behalf Of David Suarez
> Sent: Wednesday, September 17, 2008 8:12 PM
> To: mono-osx at lists.ximian.com
> Subject: Re: [Mono-osx] X11 locale support
> 
> I attach a patch to handle the exception so the key is discarded but no
> crash occurs.
> 
> Please review.
> 
> Cheers,
> 
> David
> 
> 
> > -----Original Message-----
> > From: mono-osx-bounces at lists.ximian.com [mailto:mono-osx-
> > bounces at lists.ximian.com] On Behalf Of listasdavid at codicesoftware.com
> > Sent: Wednesday, September 17, 2008 4:09 PM
> > To: mono-osx at lists.ximian.com
> > Subject: [Mono-osx] X11 locale support
> >
> > Hi,
> >
> > I'm getting a curious crash on MWF under X11 on mac (I don't know the
> > level of support it currently has on leopard)
> >
> > The point is that with a Spanish keyboard, pressing the tilde key
> > crashes with the app with this exception:
> >
> > Unhandled Exception: System.ArgumentException: Culture ID 1034
> > (0x040A) is not a supported culture.
> > Parameter name: culture
> >   at System.Globalization.CultureInfo..ctor (Int32 culture, Boolean
> > useUserOverride, Boolean read_only) [0x00000]
> >   at System.Globalization.CultureInfo..ctor (Int32 culture, Boolean
> > useUserOverride) [0x00000]
> >   at System.Globalization.CultureInfo..ctor (Int32 culture) [0x00000]
> >   at System.Windows.Forms.X11Keyboard.ToUnicode (Int32 vkey, Int32
> > scan, System.String& buffer) [0x00000]
> >   at System.Windows.Forms.X11Keyboard.TranslateMessage
> > (System.Windows.Forms.MSG& msg) [0x00000]
> >   at System.Windows.Forms.XplatUIX11.TranslateMessage
> > (System.Windows.Forms.MSG& msg) [0x00000]
> >   at System.Windows.Forms.XplatUI.TranslateMessage
> > (System.Windows.Forms.MSG& msg) [0x00000]
> >   at System.Windows.Forms.Application.RunLoop (Boolean Modal,
> > System.Windows.Forms.ApplicationContext context) [0x00000]
> >   at System.Windows.Forms.Application.Run
> > (System.Windows.Forms.ApplicationContext context) [0x00000]
> >   at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
> > mainForm) [0x00000]
> >   at basicform.Form1.Main () [0x00000]
> >
> >
> > What I find weird curious here is that that's the only key that
> > happens to crash. Any clues?
> >
> > Cheers,
> >
> > David
> >
> > _______________________________________________
> > Mono-osx mailing list
> > Mono-osx at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unhandled_culture_key_crash.patch
Type: application/octet-stream
Size: 1153 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080919/43df1c65/attachment-0001.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00882.txt
Url: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080919/43df1c65/attachment-0001.txt 


More information about the Mono-winforms-list mailing list