[Mono-bugs] [Bug 81289][Nor] Changed - Unhandled System.ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 2 16:49:02 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by monkey at jpobst.com.


--- shadow/81289	2007-04-02 16:35:12.000000000 -0400
+++ shadow/81289.tmp.16107	2007-04-02 16:49:02.000000000 -0400
@@ -271,6 +271,24 @@
 investigation, but I'm curious to get your feedback on how other
 applications that depend on Mono handle such issues.
 Thanks again for your comment and I'll be sure to feed this
 information back to the people at Gentoo, and it will definitely lead
 to some changes in GNUdental(tm) and perhaps also Open Dental(R).
+------- Additional Comments From monkey at jpobst.com  2007-04-02 16:49 -------
+Awesome, I'm glad to hear it's working for you now.  I don't really
+know much of internationalization, but the line in question can be
+written to be a little more error proof, like:
+if (CultureInfo.CurrentCulture.Name != "en-CA")
+- or -
+if (CultureInfo.CurrentCulture.Name.Length > 3 &&
+CultureInfo.CurrentCulture.Name.Substring (3) != "CA")
+From the MSDN docs, it seems the current way it is written will fail
+in several places around the world, for example, the neutral English
+culture "en", which has no country suffix.  I would think the approach
+of hiding menu options that are not valid for the culture makes sense,
+but I have no real world international experience to back that up.  :)

More information about the mono-bugs mailing list