New test.
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
index f770c132bc6bd69cbcdfb8f6b943adf002d8061f..8698059b00f6ef70ba2e884779c916d2a06b026f 100644 (file)
@@ -1,3 +1,298 @@
+2006-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileInfo.cs: added 2.0 IsReadOnly. Patch by Joel Reed.
+
+2006-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileInfo.cs: eol-style.
+
+2006-09-19  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FileNotFoundException.cs: Changed message for default ctor to match
+       MS. Use internal message field of Exception to check whether Message
+       is null. On 2.0 profile, use file/assembly load failure message when
+       no message is set and a filename was specified. On 1.0 profile,
+       always use file/assembly load failure message when no message is set
+       (regardless of whether a filename was specified or not). Made some
+       cosmetic changes to ToString to have it match MS.
+
+2006-09-02  Zoltan Varga  <vargaz@gmail.com>
+
+       * BinaryReader.cs (Read): Avoid allocating memory when reading a char.
+
+2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StreamReader.cs: avoid ArgumentOutRangeException when the underlying
+       stream returns -1 on Read.
+
+2006-08-30  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * FileInfo.cs: OpenRead should open the file using the Read share mode.
+
+2006-08-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Path.cs: Added internal method IsPathSubsetOf required to implement
+       correctly FileIOPermission (better located here).
+
+2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * File.cs: (Delete) avoid creating the exception object for the 'file
+       not found' case.
+
+2006-07-24  Miguel de Icaza  <miguel@novell.com>
+
+       * FileShare.cs: Add Delete in 2.0
+
+2006-07-06  Dick Porter  <dick@ximian.com>
+
+       * Directory.cs: When creating a directory treat ERROR_FILE_EXISTS
+       (ie a file already exists with that name) the same as
+       ERROR_ALREADY_EXISTS (ie a directory already exists with that
+       name.)  Keeps bug 50753 fixed when I fix the io-layer
+       CreateDirectory() behaviour.
+
+2006-06-21  Atsushi Enomoto <atsushi@ximian.com>
+
+       * Directory.cs : implemented GetFiles() and GetDirectories() which
+         takes SearchOption (as they are used in one of ruby.net stuff).
+
+2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * File.cs: never throw in Exists.
+
+2006-05-18  Miguel de Icaza  <miguel@novell.com>
+
+       * Directory.cs (Exists): Ignore INVALID_HANDlE, return false.
+
+2006-06-03 John Luke <john.luke@gmail.com>
+
+       * Path.cs: fix typo in [Obsolete] message
+       
+2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BinaryReader.cs: use BlockCopyInternal.
+
+2006-05-01  Daniel Drake  <dsd@gentoo.org>
+
+       * Directory.cs: Return false (as documented) on ERROR_ACCESS_DENIED in
+       Exists() rather than throwing an exception. Bug #78239.
+
+2006-04-29  Atsushi Enomoto <atsushi@ximian.com>
+
+       * UnexceptionalStreamReader.cs (Read): Fix for #78218, where we
+       consumed characters from the input even when the count was not set
+       to zero, causing some characters to be missing in some
+       circumstances. 
+
+2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directory.cs: make sure the parent directory is not an empty string
+       when a file name with no path is provided. Fixes bug #78209. Patch by
+       Emery Conrad.
+
+2006-04-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * StreamReader.cs : implemented EndOfStream property.
+       * File.cs : implemented AppendAllText(), WriteAllLines(),
+         WriteAllBytes() and ReadAllLines(). Bug #77813 fixed.
+
+2006-04-28  Robert Jordan  <robertj@gmx.net>
+
+       * Path.cs (GetPathRoot): Return just the \\server\share
+       part of a UNC. Fixes #78147.
+
+
+2006-04-26  Miguel de Icaza  <miguel@novell.com>
+
+       * FileStream.cs: Implement the FileOptions usage by passing all
+       the information to the C layer.  Remove the "isAsync" argument for
+       MonoIO.Open, and instead pass it on the FileOptions.
+
+       * FileOptions.cs: Make it build when including WriteThrough
+
+       * MonoIO.cs: Update MonoIO.Open signature to drop the async
+       argument and take FileOptions instead. 
+
+2006-04-21  Zoltan Varga  <vargaz@gmail.com>
+
+       * FileStream.cs: Add new net 2.0 ctor.
+
+       * FileOptions.cs: New file.
+
+2006-03-21  Miguel de Icaza  <miguel@novell.com>
+
+       * Stream.cs: In 2.0 make Close call Dispose(true).
+
+2006-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileStream.cs: Seek() should flush the buffer, if any. Fixes bug
+       #77863.
+
+2006-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * Stream.cs: Add 2.0 members to Stream.cs (CanTimeout,
+       ReadTimeout and WriteTimeout).
+       
+2006-02-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * File.cs: In 2.0 profile, File.Get****Time(Utc) should not throw
+       IOException if specified path does not exist. Fixes bug #77641.
+
+2006-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FileStream.cs: To match MSFT, ignore FileShare.Inheritable on 2.0
+       profile. This fixes bug #77644. Improved usefulness of some existing
+       exception messages.
+
+2006-02-22  Joerg Rosenkranz <joergr@voelcker.com>
+
+       * MonoIO.cs, MonoIOError.cs: Verbose exception for error 39 
+         (disk full).
+         
+2006-02-03  Zoltan Varga  <vargaz@gmail.com>
+
+       * Stream.cs FileStream.cs: Add new 2.0 Dispose () method and protected
+       Dispose (bool) method.
+
+2006-01-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TextWriter.cs: Dispose () is public in 2.0.
+
+2006-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * UnexceptionalStreamReader.cs: Read (char,int,int) should not
+       return -1. Thanks to Jakob Berkman.
+
+2006-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StreamReader.cs: (ReadToEnd) if Read returns -1 or 0, we're done.
+
+2006-01-18  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Path.cs : (GetRandomFileName) use random buffer ;-) It somehow
+         caused infinite loop on Windows.
+
+2006-01-18  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DirectoryInfo.cs : on Windows top directory is something like c:\.
+
+2006-01-17  Joshua Tauberer  <tauberer@for.net>
+
+       * StreamReader.cs: Avoid two totally unnecessary string creations.
+         (kind of pedantic)
+
+2006-01-13  Ben Maurer  <bmaurer@andrew.cmu.edu>
+
+       * TextWriter.cs: Call char[],int,int from the Write(char[]) method
+       both for msft compat and for performance. Thanks to "Mike Glenn" 
+       <mglenn@zoominternet.net> for pointing.
+
+2006-01-12  Ben Maurer  <bmaurer@andrew.cmu.edu>
+
+       * File.cs: Support for Read/WriteAllText
+
+2006-01-11  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Path.cs: Previous fix caused regression of bug #76191. Fixed (again)
+
+2006-01-09  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Path.cs: Fix c14n on Windows when the first separator after the root
+       isn't '\'. Fix problems for XSP with 1.1.13.
+
+2006-01-07  Miguel de Icaza  <miguel@novell.com>
+
+       * Path.cs (GetTempFilename): Append ".tmp" to the path, some
+       external application expect this extension.
+
+2006-01-05  Kornél Pál  <kornelpal@hotmail.com>
+
+       * DriveNotFoundException.cs: Added.
+       * MonoIO.cs: Added ERROR_INVALID_DRIVE handling. Pass HResult to
+         IOException constructors.
+       * MonoIOError.cs: Expose ERROR_INVALID_DRIVE.
+
+2006-01-02  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * UnexceptionalStreamReader.cs: Re-implemented the Read method to fix 
+       the new line handling when reading from the Console (bug #77108).
+
+2005-12-24  Kornél Pál  <kornelpal@hotmail.com>
+
+       * FileStream.cs: Set buf_start to actual initial position when creating
+         FileStreams from handles.
+
+2005-12-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DirectoryInfo.cs: Fixed #77090 to fix /home parent to be / (and not
+       null).
+
+2005-12-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Path.cs: Fixed #77058 where a Windows drive wasn't considered during
+       path canonalization.
+
+2005-12-20  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Path.cs: Fixed #77007 where a Windows drive is specified with a 
+       partial path.
+
+2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DirectoryInfo.cs: Fixed #76903 where the Name property wasn't 
+       correct in some cases. Added special case for Windows drives. Reduced
+       temporary allocations in Get* methods (removed ArrayList). Added some
+       new 2.0 methods (partial).
+       * MonoIO.cs: Removed InvalidPathChars icall as the return value is 
+       different from 1.x and 2.0. The values are now defined in Path.cs.
+       * Path.cs: Fixed #76191 so that GetFullPath on a Windows drive returns
+       the current directory (if it's on the specified drive). Fixed 2.0 API
+       changes (e.g. static class).
+       * SearchOption.cs: Added missing [Serializable] (2.0).
+
+2005-12-07  Zoltan Varga  <vargaz@gmail.com>
+
+       * Directory.cs: Fix a warning.
+
+2005-11-10  Dick Porter  <dick@ximian.com>
+
+       * DirectoryInfo.cs: Fix endless recursion problem with root
+       directory on windows too.  Fixes bug 76191.
+
+2005-11-06  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Directory.cs: Add stub for net 2.0 GetFiles method.
+
+       * SearchOption.cs: New file.
+
+2005-10-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StreamReader.cs: made ReadLine() less memory-hungry. Fixes bug #76399.
+
+2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MonoIO.cs: replace FindFirst/FindNext/FindClose with
+       GetFileSystemEntries.
+       * Directory.cs: simplify GetFileSystemEntries by using the new icall.
+
+2005-10-01  Ben Maurer  <bmaurer@ximian.com>
+
+       * BinaryReader.cs: The patch below had a nasty little bug with
+       long strings that had non-ascii chars in it, because it was
+       looking at the char count, not the byte count.
+
+2005-09-11  Ben Maurer  <bmaurer@ximian.com>
+
+       * BinaryReader.cs: An optimization for ReadString that had been
+       approved/well tested for a while but never gotten in. Bug #52754.
+
+2005-09-05  Miguel de Icaza  <miguel@novell.com>
+
+       * MonoIOError.cs: expose the ERROR_DIR_NOT_EMPTY as we are
+       throwing it. 
+
+       * MonoIO.cs: Return a properly named error.
+
 2005-08-23  Raja R Harinath  <rharinath@novell.com>
 
        Fix #75679.