* StreamReader.cs: if the detected encoding is different from the
provided to the constructor, adjust the decoded buffer size if
needed. Fixes bug #589236.
svn path=/trunk/mcs/; revision=153799
* StreamReader.cs: When detecting the encoding we usually check the
four first bytes looking for either UTF32 or UTF8 BOM, since they share
the first two bytes, but if we happen to have less than 4 bytes at
detection time, just check for Unicode and use it as the current
encoding - this is exactly what .Net does, and it is specially visible
with NetworkStream.
Fixes#534137.
svn path=/trunk/mcs/; revision=150090
* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
load all the data that was added into the `stdin' stream when we
did the `Read'.
2009-04-25 Miguel de Icaza <[email protected]>
* StreamReader.cs (DataAvailable): New internal function to work
around the fact that StreamReaders are now blocking on Peek(), and
that our own Console.TermInfoDriver used Peek() as a way of
probing if there was data on a stream before to avoid blocking. o
svn path=/trunk/mcs/; revision=132670
* StreamReader.cs: when a LF ends a decoded buffer and is not followed
by a CR in the next decoded buffer, we didn't flush the string.
Fixes bug #445326.
svn path=/trunk/mcs/; revision=126131
* StreamReader.cs : Encoding.GetMaxCharCount() does not always return
the maximum max char count for Decoder.GetChars() since it might
contain pending buffer by flush. Fixed bug #338370.
svn path=/trunk/mcs/; revision=88712
* StreamReader.cs: fix for bug #75526. We return earlier from Read () if
the underlying stream might block or end on the next read.
svn path=/trunk/mcs/; revision=71650
* StreamReader.cs (Read): Fix this overload, we were just lucky
that it worked in the past. Must trigger a load from the buffer
if we reached its end.
svn path=/trunk/mcs/; revision=71573
* StreamReader.cs: Add checks for null encoding. Fixed possible integer
overflow and ArgumentNullException in Read.
svn path=/trunk/mcs/; revision=28000
* FileStream.cs: use the argument name when throwing exception.
* StreamReader.cs:
* StringReader.cs:
* TextReader.cs: added [In] attribute for the array in Read.
svn path=/trunk/mcs/; revision=19987
* StreamReader.cs: Add checks for disposed stream from bug report
#48696 (Patrik Reali)
* TextReader.cs (Read): Return the total number of bytes read,
patch from Patrik Realli.
svn path=/trunk/mcs/; revision=19435
* StreamReader.cs (DiscardBufferedData): Do the same like on the
ms runtime: just discard the buffered data, but don't modify the
BaseStream.Position.
svn path=/trunk/mcs/; revision=17081
be public.
* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.
* SignatureHelper.cs: This class does not have the
SerializableAttribute.
* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.
* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.
* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.
* Guid.cs (NewGuid): Remove MonoTODOAttribute.
* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.
* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.
svn path=/trunk/mcs/; revision=16594