Przeglądaj źródła

2003-09-01 Miguel de Icaza <[email protected]>

	* Encoding.cs (UTF8Unmarked): make it also not error out on
	invalid input, that is what the Microsoft default is for the
	StreamReader and BinaryReader expect (our main consumers).

svn path=/trunk/mcs/; revision=17807
Miguel de Icaza 22 lat temu
rodzic
commit
7fe89c4676

+ 6 - 0
mcs/class/corlib/System.Text/ChangeLog

@@ -1,3 +1,9 @@
+2003-09-01  Miguel de Icaza  <[email protected]>
+
+	* Encoding.cs (UTF8Unmarked): make it also not error out on
+	invalid input, that is what the Microsoft default is for the
+	StreamReader and BinaryReader expect (our main consumers).
+
 2003-08-21 Ben Maurer  <[email protected]>
 
 	* StringBuilder.cs

+ 2 - 2
mcs/class/corlib/System.Text/Encoding.cs

@@ -684,14 +684,14 @@ public abstract class Encoding
 	}
 
 	//
-	// Only internal, to be used by the class libraries
+	// Only internal, to be used by the class libraries: Unmarked and non-input-validating
 	//
 	internal static Encoding UTF8Unmarked {
 		get {
 			if (utf8EncodingWithoutMarkers == null) {
 				lock (typeof (Encoding)){
 					if (utf8EncodingWithoutMarkers == null){
-						utf8EncodingWithoutMarkers = new UTF8Encoding (false, true);
+						utf8EncodingWithoutMarkers = new UTF8Encoding (false, false);
 					}
 				}
 			}