Commit Graph
7 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 797ad860d5 * UTF8Encoding.cs: IsMailNewsSave should return true. Fixes bug
#332515.
* UTF32Encoding.cs: IsBrowserSave returns false for both Big-Endian and
Little-Endian.
* TestEncoding.cs: Also make class available on 1.0 profile.
* EncodingTest.cs: Added tests for Is* properties.
* UTF7EncodingTest.cs: Added tests for Is* properties.
* UnicodeEncodingTest.cs: Added tests for Is* properties. Fixed 
line endings.
* UTF8EncodingTest.cs: Added tests for Is* properties. Spaces to
tabs. Numbered tests.
* ASCIIEncodingTest.cs: Added tests for Is* properties. No longer
derive from TestCase class. Spaces to tabs.    
* UTF32EncodingTest.cs: Added tests for Is* properties. No longer
derive from deprecated Assertion class.

svn path=/trunk/mcs/; revision=87593
2007-10-16 14:48:47 +00:00
Miguel de Icaza c6e197166f Add support for detecting UTF32 and UTF-32 bigendian
patch from  Peter Dettman ([email protected])


svn path=/trunk/mcs/; revision=73779
2007-03-06 04:26:50 +00:00
Atsushi Eno dd908d994b 2006-08-24 Atsushi Enomoto <[email protected]>
* Encoding.cs :
	  Consider DecoderFallback and EncoderFallback in 2.0 Equals()
	  and GetHashCode().
	* UTF32Encoding.cs, UTF7Encoding.cs :
	  Fixed GetHashCode() and Equals() as well.
	  Added several missing overrides in 2.0.


svn path=/trunk/mcs/; revision=64299
2006-08-24 11:32:00 +00:00
Atsushi Eno 730e03185a 2005-11-28 Atsushi Enomoto <[email protected]>
* UTF32Encoding.cs : Sealed. Added the overload which has
	  throwOnInvalid parameter.
	* NormalizationForm.cs : removed [Serializable].


svn path=/trunk/mcs/; revision=53544
2005-11-28 10:34:41 +00:00
Atsushi Eno dece1f038e 2005-11-28 Atsushi Enomoto <[email protected]>
* UTF32Encoding.cs : surrogate pairs vanished in GetBytes() when the 
	  endianness is big.


svn path=/trunk/mcs/; revision=53538
2005-11-28 04:33:46 +00:00
Atsushi Eno 03144a9d8c 2005-11-28 Atsushi Enomoto <[email protected]>
* UTF32Encoding.cs : new file.

	* corlib.dll.sources: added UTF32Encoding.cs.


svn path=/trunk/mcs/; revision=53537
2005-11-28 03:37:40 +00:00