2008-01-16 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
index 861872c594a6c11e4039d39549cbd0f3dc981a62..634e72f12f3045fb6791940bf72c8bd62b28028c 100644 (file)
@@ -1,3 +1,294 @@
+2008-01-16  Zoltan Varga  <vargaz@gmail.com>
+
+       * BinaryReader.cs: Fix ReadCharBytes method to avoid non-linear behavior. 
+       Fixes #352184.
+
+2007-12-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * MemoryStream.cs: Fix crash if internalBuffer is null. Avoid calling
+       unsafe icalls. Fixes #350860.
+
+2007-11-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * FileStream.cs : Close() does not exist in 2.0 (Stream does).
+         Move GC.SuppressFinalize() to Dispose(true).
+
+2007-11-12  Juraj Skripsky  <js@hotfeet.ch>
+
+       * Path.cs (GetRandomFileName): Return filenames containing only
+       characters from the range [a..z0..9] as MS.NET does. 
+
+2007-11-02  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * 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.
+
+2007-11-01  Miguel de Icaza  <miguel@novell.com>
+
+       * Path.cs (GetDirectoryName): The paths returned from this routine
+       should be canonical, not just a substring.   In addition to fixing
+       this, it also fixes #324742.
+
+2007-10-26  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * BinaryReader.cs, BinaryWriter.cs : use unsafe encoding that has ""
+         for replacement fallback. Binary serialization regression is fixed.
+
+2007-09-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Stream.cs, BufferedStream.cs, MemoryStream.cs: in 2.0 override
+         Dispose(bool) rather than Close().
+         Stream.Dispose() is virtual in 2.0.
+
+2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * BinaryReader.cs: Fixed line endings.
+       * FileStream.cs: Rename name argument to path. Spaces to tabs.
+
+2007-08-20  William Holmes  <billholmes54@gmail.com>
+
+       *File.cs:  Add implementation for IO.File.Replace methods.
+       *MonoIO.cs: Declared an internal call for ReplaceFile
+
+       Code is contributed under MIT/X11 license.
+
+2007-07-31  Dick Porter  <dick@ximian.com>
+
+       * MonoIO.cs: Fix formatting of 'access denied' exception when the
+       path info isn't known.  Fixes bug 82141.
+
+2007-07-08  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Directory.cs: Renamed Move arguments to match MS. Allow Move to be
+       used to move files, patch by Robert Jordan. Fixes bug #81912. Spaces
+       to tabs.
+
+2007-06-21  Dick Porter  <dick@ximian.com>
+
+       * FileStream.cs: Fix FileShare test, fixing better bug 79250.
+
+2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UnmanagedMemoryStream.cs : added Closed event for sys.Resources use.
+       * IntPtrStream.cs : added internal get_BaseAddress(), for the same.
+
+2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * UnmanagedMemoryStream.cs: In Read and ReadByte, use Marshal.ReadByte
+       to read bytes as this allows us to start reading from the current
+       position. In Read, return 0 when reading beyond the end of the stream
+       and only read bytes until the end of the stream (not capacity).
+       In ReadByte, return -1 when reading beyond the end of the stream.
+       In SetLength: changed argument validation (and reported exceptions) to
+       match MS, removed duplicate access check and changed the current
+       position if length is less than position. In Write: throw
+       NotSupportedException when attempting to write beyond capacity, use
+       Marshal.WriteByte since that allows us to start writing from the
+       current position. Adjust length when position moves beyond length
+       in both Write and WriteByte. Allow position to be moved beyond
+       capacity of stream. Fixed position using Seek (=+ typo). Changed
+       CanRead to ignore current position. Allow Position to be used to move
+       beyond capacity of stream.
+
+2007-05-24  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * UnmanagedMemoryStream.cs: Changed argument names and exceptions 
+       (msg, params) to match MS. Verify access argument in ctor. 
+
+2007-05-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UnmanagedMemoryStream.cs : couple of bugfixes. in Read(), don't
+         return buffer beyond the requested length. Fixed .ctor() for wrong
+         capacity initialization.
+
+2007-05-12  Jonathan Chambers  <joncham@gmail.com>
+
+       * FileStream.cs: Implement SafeHandle constructors.
+
+2007-05-01  Dick Porter  <dick@ximian.com>
+
+       * File.cs:
+       * Stream.cs: Missed a few 2.0 methods
+
+2007-04-30  Dick Porter  <dick@ximian.com>
+
+       * Directory.cs: 
+       * FileShare.cs: 
+       * DirectoryNotFoundException.cs: 
+       * SeekOrigin.cs: 
+       * FileAttributes.cs: 
+       * IOException.cs: 
+       * MemoryStream.cs: 
+       * FileMode.cs: 
+       * BinaryWriter.cs: 
+       * TextWriter.cs: 
+       * File.cs: 
+       * BinaryReader.cs: 
+       * TextReader.cs: 
+       * UnmanagedMemoryStream.cs: 
+       * StringWriter.cs: 
+       * FileAccess.cs: 
+       * FileLoadException.cs: 
+       * BufferedStream.cs: 
+       * Stream.cs: 
+       * FileInfo.cs: 
+       * FileStream.cs:
+       * StringReader.cs: 
+       * StreamWriter.cs: 
+       * EndOfStreamException.cs: 
+       * DriveInfo.cs: 
+       * StreamReader.cs: 
+       * PathTooLongException.cs: 
+       * DriveType.cs: 
+       * FileNotFoundException.cs: 2.0 profile updates
+
+2007-04-21  Alp Toker  <alp@atoker.com>
+
+       * FileStream.cs: Respect request for buffering in all cases.
+
+       Gonzalo added code in r42667 that disables buffering even when it is
+       requested, in the case that ftype != MonoFileType.Disk. This was
+       killing performance for users who do Console.OpenStandardOutput(1024)
+       but were ending up with a non-buffered FileStream.
+
+       The new behaviour appears correct but we should watch for any
+       regressions.
+
+2007-04-05  Dick Porter  <dick@ximian.com>
+
+       * Directory.cs: Pass combined path and pattern to
+       MonoIO.GetFileSystemEntries()
+
+2007-04-03  Alp Toker  <alp@atoker.com>
+
+       * UnmanagedMemoryStream.cs: Should not have a public Dispose().
+       This behaviour is already provided by the base class.
+
+2007-04-03  Alp Toker  <alp@atoker.com>
+
+       * Stream.cs: CreateWaitHandle() obsolete in 2.0.
+
+2007-03-18  Alp Toker  <alp@atoker.com>
+
+       * UnmanagedMemoryStream.cs:
+       * Directory.cs: Exception message typo fixes.
+
+2007-03-11  Zoltan Varga  <vargaz@gmail.com>
+
+       * UnmanagedMemoryStream.cs: Fix a warning.
+
+2007-03-05  Miguel de Icaza  <miguel@novell.com>
+
+       * Path.cs: Manually call FileStream and pass the new internal
+       FileOptions.1 flag that means "This is a temporary file, use 600
+       permissions". 
+
+       * FileOptions.cs: Document the new private enum value.
+
+2007-02-22  Dick Porter  <dick@ximian.com>
+
+       * MonoIOError.cs: 
+       * MonoIO.cs: Handle ERROR_CANNOT_MAKE.
+
+2007-02-19     Eyal Alaluf <eyala@mainsoft.com>
+
+       * DirectoryInfo.cs, Directory.cs: Use MonoNotSupported & MonoLimitation
+         attribute to tag that DirectorySecurity is not supported.
+
+2007-02-19     Boris Kirzner <borisk@mainsoft.com>
+
+       * Path.cs: fix order of InvalidPathChars on windows.
+
+2007-01-31  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * StreamReader.cs: Removed checks for non-existing directory or file,
+       since these checks are also performed in FileStream.
+
+2007-01-31  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FileStream.cs: Always resolve to absolute paths for exceptions, when not
+       in anonymous mode.
+
+2007-01-24 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
+
+       * StreamReader.cs: fix for bug #75526. We return earlier from Read () if
+       the underlying stream might block or end on the next read.
+
+2007-01-22  Miguel de Icaza  <miguel@novell.com>
+
+       * DirectoryInfo.cs: Throw a better exception (accorind go the
+       docs, UnauthorizedAccessException is thrown if the underlying
+       platform does not support it and *also* if there are no
+       permissions to access it, which is more convenient than the
+       PlatformNotSupportedException that only states that it needs Win2k
+       or newer).
+
+2006-12-23  Alp Toker  <alp@atoker.com>
+
+       * Directory.cs: "platfor" typofix
+
+2006-12-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * File.cs: Add stubs for Encrypt and Decrypt that throws 
+       NotSupportedException just like non-NTFS file systems would with MS.
+       Remove nested #if NET_2_0.
+       * FileInfo.cs: Add stubs for Encrypt and Decrypt that throws 
+       NotSupportedException just like non-NTFS file systems would with MS.
+
+2006-12-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Directory.cs : non NET_2_0 build fix.
+
+2006-12-15  Miguel de Icaza  <miguel@novell.com>
+
+       * FileInfo.cs: Empty implementations for Encrypt and Decrypt
+
+Mon Dec 11 11:40:06 CET 2006 Paolo Molaro <lupus@ximian.com>
+
+       * FileStream.cs: correct exception message patch from
+       Markus Mauhart <mmauhart@chello.at>.
+
+2006-11-28  Duncan Mak  <duncan@novell.com>
+
+       * TextReader.cs (Dispose): Expose as public in NET_2_0.
+
+2006-11-26  Miguel de Icaza  <miguel@novell.com>
+
+       * DriveInfo.cs, DriveType.cs: Add a couple of classes for
+       CreativeDocs.Net.  
+
+       Thanks MoMA!  http://www.mono-project.com/Moma
+
+2006-11-16  Miguel de Icaza  <miguel@novell.com>
+
+       * DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
+       == AllDirectories
+
+2006-11-13  Dick Porter  <dick@ximian.com>
+
+       * Directory.cs: Don't follow symlinks when deleting directories.
+       Keeps bug 79733 fixed while fixing bug 79887.
+
+       * MonoIO.cs: ExistsSymlink() added, which checks for
+       FileAttributes.ReparsePoint.
+
+2006-11-07  Dick Porter  <dick@ximian.com>
+
+       * Directory.cs: CreateDirectory() should only throw IOException in
+       the 2.0 profile if a file already exists with the same name, not a
+       directory.
+
+2006-11-03 Jensen Somers <jensen.somers@gmail.com>
+
+       * Directory.cs: CreateDirectory() should throw IOException if a
+       file or directory with the same name already exists, in the 2.0
+       profile.  Fixes bug 79806.
+
+2006-10-30 Joel Reed  <joel.reed@ddiworld.com>
+
+       * DirectoryInfo.cs: Implement SearchOption.AllDirectories option.
+
 2006-10-11  Dick Porter  <dick@ximian.com>
 
        * FileStream.cs: Cope with 2.0 FileShare.Delete values.  Patch by