Commit Graph
5 Commits
Author SHA1 Message Date
Atsushi Eno f4071fef2b 2007-10-25 Atsushi Enomoto <[email protected]>
* DecoderReplacementFallbackBuffer.cs : Reset() should also reset the
	  input buffer. When fallback is not assigned, just return '\0'.
	* UnicodeEncoding.cs : handle throwOnInvalid .ctor argument.
	  Default replacement fallback buffer is now "\uFFFD".
	* UTF8Encoding.cs : couple of replacement buffer size fixes.
	  Default replacement fallback buffer is now "\uFFFD".
	* UTF32Encoding.cs : Default replacement is "\uFFFD" too here.
	  See http://support.microsoft.com/kb/940521/ for this change.

	* UnicodeEncodingTest.cs,
	  UTF8EncodingTest.cs,
	  DecoderReplacementFallbackBufferTest.cs,
	  DecoderReplacementFallbackTest.cs : default replacement buffer fix.
	  Added test for Reset() for replacement buffer.


svn path=/trunk/mcs/; revision=88150
2007-10-25 09:42:03 +00:00
Gert Driesen decc14ec8d * DecoderReplacementFallbackTest.cs: Fixed DontChangeReadOnlyCodePage-
DecoderFallback test to pass on systems where codepage 932 is valid.
Assert that exception is thrown by DecoderFallback property.
* EncoderReplacementFallbackTest.cs: Fixed DontChangeReadOnlyCodePage-
EncoderFallback test to pass on systems where codepage 932 is valid.
Assert that exception is thrown by EncoderFallback property.

svn path=/trunk/mcs/; revision=81463
2007-07-06 11:46:57 +00:00
Marek Habersack 6e5bd19fbd 2007-04-19 Marek Habersack <[email protected]>
* DecoderReplacementFallbackTest.cs: expect the correct
	exception.


svn path=/trunk/mcs/; revision=75962
2007-04-19 16:20:42 +00:00
Atsushi Eno caeaed1076 2005-11-22 Atsushi Enomoto <[email protected]>
* ASCIIEncoding.cs, Latin1Encoding.cs : added EncoderFallback support.
	* Encoding.cs : changed default fallback selection. Seems like only
	  ASCII and GB18030 uses '?' for replacement.
	* UTF8Encoding.cs : now that Fallback is read only by default, we
	  need special setter.

	* EncoderReplacementFallbackTest.cs :
	  Added Latin1 replacement test.
	  Updated some test results changed from beta2 to RTM.
	* DecoderReplacementFallbackTest.cs : the same updates.


svn path=/trunk/mcs/; revision=53350
2005-11-22 17:19:45 +00:00
Atsushi Eno 86544b0077 2005-11-15 Atsushi Enomoto <[email protected]>
* corlib_test.dll.sources: added new tests for
	  DecoderReplacementFallback and EncoderReplacementFallback.

	* Encoding.cs : Added IsReadOnly, DecoderFallback and EncoderFallback.
	* Encoder.cs : Added Fallback property.
	* Decoder.cs : Added Fallback property.

	* TestEncoding.cs,
	  DecoderReplacementFallbackTest.cs,
	  EncoderReplacementFallbackTest.cs : new 2.0 tests.


svn path=/trunk/mcs/; revision=53050
2005-11-15 12:12:12 +00:00