[Mono-bugs] [Bug 78569][Maj] Changed - DateTime.Parse fails to use culture info

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jun 6 12:05:03 EDT 2006

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 colin at breame.net.


--- shadow/78569	2006-06-06 10:32:17.000000000 -0400
+++ shadow/78569.tmp.8479	2006-06-06 12:05:03.000000000 -0400
@@ -56,6 +56,27 @@
 ------- Additional Comments From atsushi at ximian.com  2006-06-06 10:32 -------
 Exactly, it is related to locale-builder. Run "make culture-table"
 under that directory and it downloads culture data from somewhere in
 an evil land and builds "culture-info-table.h".
 If you find it difficult to fix I'll handle it later.
+------- Additional Comments From colin at breame.net  2006-06-06 12:05 -------
+Right finally got to the bottom of it (it would be the 06/06 wouldn't 
+it ;) - looks like pattern overriding is not working properly.  
+Although locale-builder is checking the files in the right order 
+(langs, supp, locale, etc.), the AddPattern method is adding them to 
+the end of the list.
+For a quick fix see below.  My suggestion would be to record the name 
+with the pattern and then overwrite as appropriate (e.g. date_short).  
+I'll knock this up if you're interested.
+tools/locale-builder/Driver.cs line 466
+private void AddPattern (ArrayList al, string pattern)
+    {
+      if (!al.Contains (pattern))
+-       al.Add (pattern);
++       al.Insert(0, pattern);       
+    }

More information about the mono-bugs mailing list