[Mono-bugs] [Bug 75259][Wis] New - String.Trim* methods accept more
characters in 2.0
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 14 08:41:57 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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75259
--- shadow/75259 2005-06-14 08:41:57.000000000 -0400
+++ shadow/75259.tmp.2242 2005-06-14 08:41:57.000000000 -0400
@@ -0,0 +1,185 @@
+Bug#: 75259
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: atsushi at ximian.com
+ReportedBy: sebastien at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: String.Trim* methods accept more characters in 2.0
+
+Description of Problem:
+String.Trim, String.TrimStart and String.TrimEnd methods accept more
+"trim-ming" characters (4) in Fx 2.0 than in Fx 1.x (and Mono).
+
+
+Steps to reproduce the problem:
+1. Compile (MCS) and execute the attached sample on Mono
+2. Compile (CSC 8.x) and execute the attached sample on Windows;
+3. Compile (CSC 7.x) and execute the attached sample on Windows;
+
+
+Actual Results (Mono):
+
+Char 0009 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 000A Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 000B Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 000C Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 000D Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 0020 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 00A0 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2000 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2001 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2002 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2003 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2004 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2005 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2006 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2007 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2008 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 2009 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 200A Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 200B Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char 3000 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+Char FEFF Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+
+Expected Results:
+C:\Temp>csc trim.cs
+
+Microsoft (R) Visual C# 2005 Compiler version 8.00.50215.44
+
+for Microsoft (R) Windows (R) 2005 Framework version 2.0.50215
+
+Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
+
+
+
+
+
+C:\Temp>trim
+
+Char 0009 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000A Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000B Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000C Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000D Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 0020 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 0085 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 00A0 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 1680 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2000 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2001 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2002 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2003 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2004 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2005 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2006 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2007 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2008 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2009 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 200A Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 200B Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2028 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2029 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 3000 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char FEFF Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+
+
+
+
+C:\Temp>csc trim.cs
+
+Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
+
+for Microsoft (R) .NET Framework version 1.1.4322
+
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+
+
+
+
+
+C:\Temp>trim
+
+Char 0009 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000A Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000B Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000C Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 000D Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 0020 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 00A0 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2000 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2001 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2002 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2003 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2004 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2005 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2006 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2007 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2008 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 2009 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 200A Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 200B Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char 3000 Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+Char FEFF Trim() Trim(null) TrimStart(null) TrimEnd(null)
+
+
+How often does this happen?
+Always
+
+
+Additional Information:
More information about the mono-bugs
mailing list