* 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
#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
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
Marked 2.0-only members as ComVisible (false).
* Decoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* Encoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* Encoding.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* NormalizationForm.cs: Marked ComVisible (true).
* StringBuilder.cs: Marked class ComVisible (true) on 2.0 profile.
Marked 2.0-only methods as ComVisible (false).
* UnicodeEncoding.cs: GetString (byte[], int, int) is only available
in 2.0 profile. Marked 2.0-only methods ComVisible (false). Added
missing ctor in 2.0 profile, and marked in MonoTODO.
* UTF7Encoding.cs: Marked class ComVisible (true) on 2.0 profile.
* UTF8Encoding.cs: Marked 2.0-only methods as ComVisible (false).
svn path=/trunk/mcs/; revision=61250
* UTF8Encoding.cs : In zero-charbuffer case, byte buffer count should
be checked. Also it should not ignore leftOver characters even if
byte buffer length is 0.
* UTF8EncodingTest.cs : added test for insufficient bytes for
flush=true and leftOver!='\0' case.
svn path=/trunk/mcs/; revision=56533
* UTF8Encoding.cs :
actually leftover bits needs more careful handleding. So it's
better to be rather close to the original GetBytes().
Also changed leftOver handling so that it will be able to support
fallback.
svn path=/trunk/mcs/; revision=56516
* UTF8Encoding.cs :
GetBytes(string, ...) could reuse InternalGetBytes() using fixed
pointers. However, InternalGetBytes() was slower than
GetBytes(string, ...), so first replaced existing InternalGetBytes()
with GetBytes() internals, and GetBytes(string, ...) switched to
InternalGetBytes(). Now GetBytes() implementation code is reduced
to one method.
svn path=/trunk/mcs/; revision=56509
* UTF8Encoding.cs : fast path optimization was pretty insufficient.
Now it handles the entire bytes, not just half of them.
svn path=/trunk/mcs/; revision=56449
* UTF7Encoding.cs UTF8Encoding.cs :
Fixed bug #77315 (Patch by [email protected]).
Make strict check for invalid surrogate.
* UTF7EncodingTest.cs : added test for bug #77315.
* UTF8EncodingTest.cs : added test for bug #77315. Also, now a
bunch of tests are working (while they are marked as NotDotNet
under 1.1 profile).
svn path=/trunk/mcs/; revision=55971
* Encoding.cs : now under 2.0 GetBytes(string,...) dispatches to
byte*-based GetBytes().
* UTF8Encoding.cs : avoid extraneous DecoderFallbackBuffer creation
which came to happen after introducing fallback buffer.
svn path=/trunk/mcs/; revision=54109
* 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
* Decoder.cs : added FallbackBuffer property.
* UTF8Encoding.cs : In NET_2_0, use DecoderFallbackBuffer instead of
"throwOnInvalid".
* UTF8EncodingTest.cs : Simply replaced all ArgumentException with
switched alias (it is DecodefFallbackException in NET_2_0).
svn path=/trunk/mcs/; revision=53137
check logic for 6 octet sequences. ((ch & 0xFC) == 0xFC) is always true
for 0xFF, even though 0xFF isn't a valid lead byte. It should be
((ch & 0xFE) == 0xFC).
svn path=/trunk/mcs/; revision=52064
in mcs:
* driver.cs : Use default encoding on the environment.
Removed (now that) extra parameter for SeekableStreamReader.
* support.cs : (SeekableStreamReader) third .ctor() argument for
StreamReader is not required (always true). preamble size could
be acquired in simpler and safe way.
in tests:
* test-444.cs :
UTF-8 BOM autodetect test (for encoding detection patch).
in class/corlib/System.Text:
* UTF8Encoding.cs : (InternalGetChars/InternalGetCharCount):
Don't exclude FEFF in the resulting text.
in class/corlib/Test/System.Text:
* UTF8EncodingTest.cs : added GetCharsFEFF().
in class/Managed.Windows.Forms:
* Makefile : added /codepage:65001 (otherwise the build gets broken
on KeyboardLayout.cs on some non-iso-8859-1 environment).
svn path=/trunk/mcs/; revision=48826
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)
svn path=/trunk/mcs/; revision=44558
* StringBuilder.cs: added TODO for serialization
* UnicodeEncoding.cs: added TODO for serialization
* UTF7Encoding.cs: added TODO for serialization
* UTF8Encoding.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29621
* UTF8Encoding.cs : Length check must be done only when the character
sequence is valid (i.e. should not check when it is overlongs).
See also TestThrowOnInvalid().
svn path=/trunk/mcs/; revision=28980
* UTF8Encoding.cs: Moved charCount-- after the check for surrogate
pair. This fix bug #57009 (and 2 failing unit tests).
svn path=/trunk/mcs/; revision=27405
* UTF8Encoding.cs (GetBytes string): Do not call base
The version in Encoding will call string.ToCharArray (),
allocating an extra array. By calling the better method
in our own class we can save memory.
svn path=/trunk/mcs/; revision=20846
* Encoding.cs: Use an internal variable to track the parameters of
each encoder, since the .NET API does not expose virtual methods
in the child classes, we should not depend on that.
* ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
Initialize the parameters for base class encoding here.
svn path=/trunk/mcs/; revision=19843
* UnicodeEncoding.cs: the bytemark should only be used to return
information in GetPreamble, not to actually encode the information
on the stream. That is taken care of by the Stream classes.
* UTF8Encoding.cs: ditto.
svn path=/trunk/mcs/; revision=9068
* Console.cs: Specify an encoder, otherwise we will get the UTF8
encoder that by default emits the byte markers.
2002-09-06 Miguel de Icaza <[email protected]>
* StreamReader.cs: Implement detection of byte marks and skipping
of byte marks at the beginning of the stream.
(ReadToEnd): Use buffered read instead of char-by-char
processing.
Correct the default arguments for creating the StreamReader.
2002-09-06 Miguel de Icaza <[email protected]>
* Encoding.cs (UTF8, Unicode): Create with a preamble, that is
what the Microsoft version does.
(UnixConsoleEncoding): New internal method, used to get the
encoding, in the future, this should pull the locale, map to
charset and then code page.
svn path=/trunk/mcs/; revision=7295
2001-10-07 Miguel de Icaza <[email protected]>
* Exception.cs: Implement bits of serialization.
* RuntimeFieldHandle.cs: Implement Serialization features.
* Type.cs: Implement TypeHandle property.
2001-10-07 Miguel de Icaza <[email protected]>
* AssemblyBuilder.cs: Reformatted.
Added override keywords to those that needed them.
Removed methods that we do not override, but just inherit
2001-10-07 Miguel de Icaza <[email protected]>
* Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
UnicodeEncoding.cs: Corrected API.
* UTF8Encoding.cs: Checked in changes from Rafael.
svn path=/trunk/mcs/; revision=1113
possible.
* ASCIIEncoding.cs: Members added so that a clean compile is
possible.
* UTF7Encoding.cs: Members added so that a clean compile is
possible.
* UTF8Encoding.cs: Members added so that a clean compile is
possible.
* Encoding.cs: All public members included. Most members
unimplemented.
svn path=/trunk/mcs/; revision=35