[Mono-osx] X11 locale support

David Suarez listasdavid at codicesoftware.com
Wed Sep 17 14:12:05 EDT 2008


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-osx/attachments/20080917/5804e539/attachment.obj 


More information about the Mono-osx mailing list