[Mono-bugs] [Bug 75916][Nor] Changed - FullDateTimePattern does not
match that of MS.NET for most cultures
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Aug 28 03:45:06 EDT 2005
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=75916
--- shadow/75916 2005-08-28 02:24:03.000000000 -0400
+++ shadow/75916.tmp.11689 2005-08-28 03:45:06.000000000 -0400
@@ -1,15 +1,15 @@
Bug#: 75916
Product: Mono: Runtime
Version: 1.1
OS: unknown
OS Details:
-Status: NEEDINFO
+Status: REOPENED
Resolution:
Severity: Unknown
-Priority: Wishlist
+Priority: Normal
Component: misc
AssignedTo: mono-bugs at ximian.com
ReportedBy: gert.driesen at pandora.be
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
@@ -301,6 +301,44 @@
explain why those date/time strings needs to be fixed for every
culture. Until this is done, I set the priority as wishlist.
------- Additional Comments From atsushi at ximian.com 2005-08-28 02:24 -------
Moreover, the list does not show the fact. For example, we Japanese
never use '?' for date and time.
+
+------- Additional Comments From gert.driesen at pandora.be 2005-08-28 03:45 -------
+So you're actually saying that for other patterns there are
+mismatches between Mono and MS.NET too ? I can't see what the
+purpose of that would be.
+
+Is compatibility and interoperability with MS.NET not a goal here ?
+
+What's the benefit of deliberately introducing interoperability
+issues ?
+
+That aside, the FullDateTimePattern for most cultures is just plain
+wrong, and results in a datetime string that is not parsable.
+
+Try running the following code snippet on Mono:
+
+CultureInfo cultureJp = new CultureInfo ("en-US");
+string date = DateTime.Now.ToString ("F", cultureJp);
+Console.WriteLine(date);
+DateTime.Parse (date, cultureJp);
+
+Actual result:
+
+August 28, 2005 9:12:44 A +2
+
+Unhandled Exception: System.FormatException: String was not
+recognized as a valid DateTime.
+in <0x000f1> System.DateTime:Parse (System.String s, IFormatProvider
+fp, DateTimeStyles styles)
+in <0x00016> System.DateTime:Parse (System.String s, IFormatProvider
+fp)
+in <0x0018a> Test:Main ()
+
+Expect result:
+
+Sunday, August 28, 2005 9:14:36 AM
+
+(Resetting priority to normal ;-))
More information about the mono-bugs
mailing list