[Mono-bugs] [Bug 80748][Cri] New - moma doesnt accept 1.2.3 definitions due to locale settings

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 7 08:34:16 EST 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 focht at gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=80748

--- shadow/80748	2007-02-07 08:34:16.000000000 -0500
+++ shadow/80748.tmp.21925	2007-02-07 08:34:16.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 80748
+Product: Mono: Tools
+Version: unspecified
+OS: 
+OS Details: Windows XP SP2 german
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: tools
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: focht at gmx.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: moma doesnt accept 1.2.3 definitions due to locale settings
+
+Description of Problem:
+
+1.2.3 definitions wont get loaded into moma
+
+Steps to reproduce the problem:
+1. setup locale where date/time is DD/MM/YY
+1. download new version 1.2.3
+ 
+Actual Results:
+
+package doesnt get accepted
+
+Expected Results:
+
+listbox should show 1.2.3 entry
+
+How often does this happen? 
+
+every time
+
+Additional Information:
+
+Please fix the following code using culture info!
+
+MoMA.Analyzer.dll:GetDefinitionFromFile
+
+---- snip ---
+
+      while ((entry1 = stream1.GetNextEntry()) != null)
+      {
+            if (entry1.Name == "version.txt")
+            {
+                  StreamReader reader1 = new StreamReader(stream1);
+                  FileDefinition definition1 = new FileDefinition();
+                  definition1.Version = reader1.ReadLine();
+                  /************** use culture info or exception is thrown!
+******/ 
+                  definition1.Date = DateTime.Parse(reader1.ReadLine());  
+                  definition1.FileName = s;
+                  reader1.Close();
+                  stream1.Close();
+                  return definition1;
+            }
+      }
+      return null;
+}
+
+---- snip ---


More information about the mono-bugs mailing list