lalala
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
index 8793418f7816e800ce5c860a0f13c67a0bf4e0cc..bb20c936c2068df5435de79c3f4a7b1413911993 100644 (file)
@@ -1,3 +1,338 @@
+2004-04-01  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * BufferedStream.cs: On Position change, do not reset the buffer if the
+       new position is in the limits of the buffer. This fixes #49403.
+
+2003-04-03  Atsushi Enomoto <atsushi@ximian.com>
+
+       * Path.cs : ChangeExtension() does not remove dot(.) when extension is
+         an empty string.
+
+2004-04-01  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * FileSystemInfo.cs: Added InternalRefresh, a virtual method that derived
+         classes can override to perform class specific refreshing.
+       * FileInfo.cs: Refresh existence flag when Refresh is called.
+       * TextWriter.cs: Applied patch by Benjamin Jemlich for bug #52512.
+         The method Write(char) should do nothing by default.
+
+2004-03-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BinaryReader.cs: don't modify the underlying stream in Peek(). Fixes
+       bug #51741. Patch by Nick Vaughan.
+
+2004-03-25  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * FileStream.cs: ReadByte(): when buffering is disabled, read the byte
+       with a direct call to ReadData. In InitBuffer(), if buffering is
+       disabled, create a buffer of one byte, to be used in ReadByte.  This
+       fixes bug #52361.
+
+2004-03-25  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * Path.cs: In GetDirectoryName, fixed check for volumeSeparator. This
+         fixes bug #53892.
+
+2004-03-24  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * File.cs: In Move, throw IOException instead of ArgumentException if 
+         destination is a directory.
+       * MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
+       ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
+       
+2004-03-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * StreamWriter.cs: Removed unneeded function
+
+2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileStream.cs: added support for asynchronous I/O without using the
+       OS native libraries if available.
+
+       * FileStreamAsyncResult.cs: IAsyncResult for asynch. I/O.
+
+       * MonoIO.cs: added BeginRead/Write, GetSupportsAsync. Open has now a
+       new parameter to tell ifthe file will be used for asynch operations.
+
+       * Stream.cs: BeginRead/Write do not use delegates. They just are
+       actually synchronous.
+
+       * StreamAsyncResult.cs: IAsyncResult for Stream.
+
+2004-03-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directory.cs: check if the error returned in Exists is different
+       from 'path not found' and throw the appropiate exception in that case.
+       See #55160.
+
+2004-03-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MonoIO.cs: added case for ERROR_FILENAME_EXCED_RANGE.
+
+2004-02-25  Jackson Harper <jackson@ximian.com>
+
+       * File.cs: Report the filename when deleting a file fails. Patch
+       by Gert Driesen. Fixes bug #54855.
+       
+2004-02-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileStream.cs: remove dangling ^Ms.
+
+2004-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileStream.cs: (.ctor) Path.DirectoryName can be empty and make
+       Path.GetFullPath crash. Fixed it.
+
+       * MonoIO.cs: fixed typo.
+
+2004-02-13  Jackson Harper  <jackson@ximian.com>
+
+       * FileStream.cs: Throw some more exceptions for invalid
+       params. Fixes some unit test failures.
+       * BufferedStream.cs: If the stream is closed (can't read from it
+       or write to it) throw an ObjectDisposedException.
+       
+Tue Jan 20 23:10:22 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+       * StreamWriter.cs, TextWriter.cs: comply with the documented
+       behaviour and use a decode buffer to improve performance.
+
+2004-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Path.cs: now Path.GetFullPath ("/") returns "/" instead of "".
+
+2004-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Path.cs: add the trailing directory separator only for volumes.
+       Fixes bug #53035.
+
+2004-01-19  Zoltan Varga  <vargaz@freemail.hu>
+
+       * IntPtrStream.cs: Fix build bustage.
+       
+       * IntPtrStream.cs: Add a 'Closed' event. Also throw exceptions after
+       the stream is closed.
+
+2004-01-18 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * FileStream.cs: Locking from bug #32344 removed. This is not
+       necessary because the correct fix was actually in the console.
+       This fixes bug #53026. Miguel de Icaza reviewed/approved this
+       patch.
+
+2004-01-14  Zoltan Varga  <vargaz@freemail.hu>
+
+       * FileStream.cs (.ctor): Avoid allocating a large buffer when reading
+       from small files.
+
+2004-01-10  Atsushi Enomoto <atsushi@ximian.com>
+
+       * Path.cs : GetDirectoryName ("c:\readme.txt") should return "c:\"
+         instead of "c:" . This fixed bug #52735.
+
+2004-01-04  Nick Drochak <ndrochak@gol.com>
+
+       * Path.cs: Remove defined but unused variable, and also got rid of
+       some unreachable code.  Eliminates some build warnings.
+
+2003-12-28 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * BinaryWriter.cs: use one encoding buffer for writing
+       strings rather than allocting one/string. HUGE perf
+       boost when writing many strings.
+
+2003-12-25  Atsushi Enomoto <atsushi@ximian.com>
+
+       * Path.cs : Fixed GetFullPath() (and CanonicalizePath()), 
+         HasExtension(), GetPathRoot() and IsPathRooted() to fit with tests.
+
+2003-12-22  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * FileStream.cs: (.ctor) do not set handle
+       in object until after it is validated via
+       GetFileType so finalizer doesn't see bad handles and
+       initialize this.handle to InvalidHandle
+
+2003-12-19  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * MonoIO.cs: SetFileTime() Failed Open returns InvalidHandle
+       not Zero
+
+2003-12-17  Atsushi Enomoto <atsushi@ximian.com>
+
+       * Directory.cs : SetCurrentDirectory() should raise errors for
+         some kind of arguments.
+
+2003-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Path.cs: GetTempPath () ends with DirectorySeparatorChar. Fixes bug
+       #52056.
+
+2003-12-06  Ravindra  <rkumar@novell.com>
+       *MonoIO.cs: Added a new exception case. It is thrown 
+       when a directory creation is attempted with a name that
+       is already used by an existing file.
+
+2003-11-28  Dick Porter  <dick@ximian.com>
+
+       * Path.cs: Use the char form of LastIndexOf, so that the
+       comparison is done with the Invariant culture.
+
+2003-11-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directory.cs: provide the path when getting the IOException.
+
+2003-11-18  John Luke  <jluke@cfl.rr.com>
+
+       * CheckArgument.cs:
+       (PathLength): fix recursion found by JonK
+       
+2003-11-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directory.cs:
+       (GetCurrentDirectory):
+       (SetCurrentDirectory): moved here from Environment. Handle error cases.
+
+       * MonoIO.cs: add path to the default error message.
+
+2003-11-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringReader.cs: fixed ReadLine for some cases where there are mixed
+       '\r' and '\n'. Closes bug #51020.
+
+2003-11-14 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * MemoryStream.cs (.ctor): We need to check if buffer is null
+       before we get the Length of it.
+
+2003-11-14  Miguel de Icaza  <miguel@ximian.com>
+
+       * StreamReader.cs, TextReader, StreamReader (Read): Add [Out]
+
+2003-11-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directory.cs: allow directory names without wildcards in the pattern.
+       Fixes bug #3 50969.
+
+       * SearchPattern.cs: made InvalidChars and WildcardChars internal.
+
+2003-11-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileStream.cs: use the argument name when throwing exception.
+
+       * StreamReader.cs:
+       * StringReader.cs:
+       * TextReader.cs: added [In] attribute for the array in Read.
+
+2003-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DirectoryInfo.cs: fixed ToString. Closes bug #50842.
+
+2003-11-12  Miguel de Icaza  <miguel@ximian.com>
+
+       * Directory.cs: Adjust for missing PlatformID.Unix.
+
+2003-10-28  Miguel de Icaza  <miguel@ximian.com>
+
+       * 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.
+
+2003-10-20  Miguel de Icaza  <miguel@ximian.com>
+
+       * FileStream.cs public FileStream (string name, FileMode mode)
+       constructor: If we pass FileMode.Append, we can not pass
+       FileAccess.ReadWrite.  This fixes bug 44959
+
+2003-09-26  Miguel de Icaza  <miguel@ximian.com>
+
+       * BufferedStream.cs (Write): Use CanWrite in Write.  Patch from
+       Francisco Figueiredo Jr.
+
+2003-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BinaryReader.cs: return the correct number of bytes read when there
+       are some bytes from peeking.
+
+2003-09-11  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * BufferedStream.cs, FileStream.cs, MemoryStream.cs, Stream.cs:
+         Added [In,Out] attributes to Read method.
+
+2003-08-05  Martin Baulig  <martin@ximian.com>
+
+       * StreamReader.cs (DiscardBufferedData): Do the same like on the
+       ms runtime: just discard the buffered data, but don't modify the
+       BaseStream.Position.
+
+2003-08-04  Martin Baulig  <martin@ximian.com>
+
+       * StreamReader.cs (DiscardBufferedData): Implemented.
+
+2003-07-29  Miguel de Icaza  <miguel@ximian.com>
+
+       * IntPtrStream.cs (Read): Use correct offset here;  Change the
+       code to use a byte* instead of an IntPtr to reduce the number of
+       casts used. 
+
+       (Read): Use Marshal.Copy instead of the now
+       deprecated MemCopy.
+
+       (IntPtrStream): New stream implementation, it maps to a region in
+       memory.
+
+2003-07-23  Duncan Mak  <duncan@ximian.com>
+
+       * StreamReader.cs (Initialize): This method is not exposed in the
+       API, mark as internal.
+
+Fri Jul 18 14:42:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
+
+       * MonoIO.cs: 64bit fix from Bernie Solomon <bernard@ugsolutions.com>.
+
+2003-07-16  Dick Porter  <dick@ximian.com>
+
+       * FileInfo.cs: Update path info when a file is moved.  Patch by
+       John Luke <jluke@cfl.rr.com>, fixes bug 44253.
+
+2003-07-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MemoryStream.cs: fixed bug #46060. Thanks to Carlos Barcenilla.
+
+2003-06-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * FileStream.cs (Dispose): Flush the buffer even if we don't own the
+       handle.
+       * FileStream.cs: Add a new constructor parameter to turn off buffering.
+       This is used by the Console.OpenStandard...() methods. Also fix
+       argument checking in InitBuffer(), so a zero buffer size is also 
+       rejected.
+
+2003-06-27  Dietmar Maurer  <dietmar@ximian.com>
+
+       * Stream.cs: use async.delegate invoke 
+
+2003-06-18  Nick Drochak <ndrochak@gol.com>
+
+       * FileSystemInfo.cs: Refresh cache when changeing file times.
+
+2003-06-11  Zoltan Varga  <vargaz@freemail.hu>
+
+       * FileStream.cs: Fix errors in previous checkins:
+       (Write): Only take the shortcut route if the data is longer than the
+       buffer length.
+       (Write): Flush the buffer before writing out the new data
+       (Write): Flush the buffer after writing out a segment since otherwise
+       we will go into an infinite loop.
+       (FlushBuffer): Remove my last change since it was clearly wrong.
+       (Seek): Run FlushBuffer () after the in-buffer seek optimization.
+       (Seek): Only use the in-buffer optimization if the buffer is not
+       empty.
+       (Length): Call FlushBuffer () since buffer data might change the size
+       of the stream.
+
 2003-06-09  Ville Palo <vi64pa@kolumbus.fi>
 
        * FileStream.cs:
        * BinaryReader.cs (Read): make sure the buffer is big enough (fix
        bug # 40702)
 
-2003-04-24  Pedro Martínez Juliá  <yoros@wanadoo.es>
+2003-04-24  Pedro Martinez Julia  <yoros@wanadoo.es>
 
        * BufferedStream.cs: Test if it's possible to seek in a Stream
        before access to Position. This prevents the exception thrown when
@@ -1016,4 +1351,3 @@ Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
        New class implemenations.
 
        * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.
-