ChangeLog 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. 2003-05-07 Ben Maurer <[email protected]>
  2. * Path.cs
  3. (GetPathRoot) Added support for UNC paths.
  4. (CanonicalizePath) Added optimizations per Miguel's requests.
  5. 2003-05-06 Ville Palo <[email protected]>
  6. * BufferedStream.cs:
  7. - Removed unusefull code.
  8. - Added ObjectDisposedException to Position
  9. - Dont flush if stream is allready closed.
  10. - Flush throws also ObjectDisposedException.
  11. * Directory.cs:
  12. - GetFileSystemEtries: ArgumentNullException if pattern is null
  13. * DirectoryInfo.cs: Fixed little MoveTo () bug.
  14. * FileInfo.cs:
  15. - Exists: If file does not exists when instance is created the
  16. value of the Exists property does not change even if file is created
  17. afterwards.
  18. - Delete: If path is a directory UnauthorizedException is thrown.
  19. - CopyTo: Now we can overwrite file if wanted.
  20. * Path.cs:
  21. - GetFullPath: Now throws exception when path is " ".
  22. 2003-05-04 Ben Maurer <[email protected]>
  23. * Directory.cs (GetLogicalDrives) Marked as MonoTODO
  24. because we need to implement the method on Windows.
  25. * Path.cs
  26. (CanonicalizePath) Added new function to get
  27. rid of . and .. in path names. Need to figure out what
  28. other functions should call this.
  29. (GetFullPath) Added call to the above function.
  30. 2003-05-04 Gonzalo Paniagua Javier <[email protected]>
  31. * StreamReader.cs:
  32. (.ctor): fixed parameters passed to FileNotFoundException.
  33. 2003-04-25 Dietmar Maurer <[email protected]>
  34. * BinaryReader.cs (Read): make sure the buffer is big enough (fix
  35. bug # 40702)
  36. 2003-04-24 Pedro Martínez Juliá <[email protected]>
  37. * BufferedStream.cs: Test if it's possible to seek in a Stream
  38. before access to Position. This prevents the exception thrown when
  39. the stream is System.Net.Sockets.NetworkStream.
  40. 2003-04-22 Ville Palo <[email protected]>
  41. * Directory.cs: clean up --> performance improvment. Some exceptions
  42. are now checked in File.cs.
  43. * File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
  44. 2003-04-21 Ville Palo <[email protected]>
  45. * Directory.cs: lots of fixes.
  46. - Added GetXXXtimeUtc () (v1.1) methods.
  47. - Added SetXXXtimeUtc () (v1.1) methods.
  48. 2003-04-20 Igor Nosyryev <[email protected]>
  49. * StringReader.cs (Read): Increment nextChar by charsToRead
  50. instead of count, that will guarantee that the next time the
  51. method is called, it will return 0 on an empty string rather than
  52. throwing an exception
  53. 2003-04-19 Ville Palo <[email protected]>
  54. * BufferedStream.cs: Some fixes, mostly throwing exceptions.
  55. * MemoryStream.cs: Changed the order of exception checking
  56. * StringReader.cs: little clean up
  57. 2003-04-14 Ville Palo <[email protected]>
  58. * BinaryWriter.cs: Fixed decimal writing and lots of
  59. ObjectDisposedExceptions added.
  60. 2003-04-13 Ville Palo <[email protected]>
  61. * BinaryReader.cs: Fix to ReadDecimal() method.
  62. 2003-04-13 Ville Palo <[email protected]>
  63. * StringReader.cs: Added some ObjectDisposedExceptions.
  64. * StringWriter.cs: Added some ObjectDisposedExceptions.
  65. * BinaryReader.cs: Added some ObjectDisposedExceptions.
  66. 2003-04-13 Gonzalo Paniagua Javier <[email protected]>
  67. * FileStream.cs: fixed the windows build. This is an mcs bug. I'll
  68. fill a bug report.
  69. 2003-04-12 Gonzalo Paniagua Javier <[email protected]>
  70. * FileStream.cs: fixed bug #40182 and made more unit test pass.
  71. 2003-04-11 Ville Palo <[email protected]>
  72. * FileStream.cs: Added new methods Lock () and Unlock ()
  73. 2003-04-11 Ville Palo <[email protected]>
  74. * StringReader.cs: Throws exceptions if constructor parameter is null.
  75. 2003-04-11 Ville Palo <[email protected]>
  76. * StringWriter.cs: Now throws an exception if StringBuilder parameter
  77. is null
  78. 2003-04-05 Miguel de Icaza <[email protected]>
  79. * TextWriter.cs: Implemented Synchronized method.
  80. * TextReader.cs: Implemented Synchronized method.
  81. 2003-04-04 Miguel de Icaza <[email protected]>
  82. * FileStream.cs (Read, ReadByte, Seek): throw
  83. ObjectDisposedException if the handle has been released.
  84. (Read): Throw exceptions specified in the spec.
  85. (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
  86. instance methods of FileStream to be thread safe, so remove all
  87. the calls to lock on the object
  88. 2003-03-31 Nick Drochak <[email protected]>
  89. * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
  90. 2003-03-20 Lluis Sanchez Gual <[email protected]>
  91. * FileNotFoundException.cs: fixed serialization bug.
  92. 2003-03-18 Atsushi Enomoto <[email protected]>
  93. * StringWriter.cs : don't release internalString on Dispose().
  94. 2003-03-07 Gonzalo Paniagua Javier <[email protected]>
  95. * StreamReader.cs: fixed bug #39280.
  96. 2003-03-07 Gonzalo Paniagua Javier <[email protected]>
  97. * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
  98. pointing it out.
  99. 2003-03-05 Gonzalo Paniagua Javier <[email protected]>
  100. * MemoryStream.cs: general fixes and reformatted. Passes all tests in
  101. the new MemoryStreamTest.
  102. 2003-03-05 Gonzalo Paniagua Javier <[email protected]>
  103. * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
  104. ToArray even after closing the stream.
  105. 2003-03-03 Gonzalo Paniagua Javier <[email protected]>
  106. * Directory.cs:
  107. (Move): don't use File.Move.
  108. * DirectoryInfo.cs: fixed Name property.
  109. Fixes bug #37755.
  110. 2003-03-02 Gonzalo Paniagua Javier <[email protected]>
  111. * DirectoryInfo.cs: changed ToString to match MS behavior.
  112. * Path.cs: further fixes to GetDirectoryName to return null in the
  113. same cases that MS does.
  114. Fixes bug #38387.
  115. 2003-03-02 Gonzalo Paniagua Javier <[email protected]>
  116. * Path.cs: fixed a couple of bugs reported in #35906.
  117. 2003-03-01 Gonzalo Paniagua Javier <[email protected]>
  118. * Directory.cs: fixed bugs #38939 and #38940. No need for separate
  119. unix/windows/unc shares code paths.
  120. 2003-02-27 Gonzalo Paniagua Javier <[email protected]>
  121. * File.cs: fix by Elan Feingold <[email protected]> for
  122. SetCreationTime, SetLastAccessTime and SetLastWriteTime.
  123. 2003-02-26 Gonzalo Paniagua Javier <[email protected]>
  124. * MemoryStream.cs:
  125. (ToArray): return only the portion of the buffer that contains
  126. data, not the whole buffer. (note: this makes XmlDocument.Load work
  127. again with documents that have a <?xml without the 'encoding'
  128. attribute, which makes gtk-sharp generator work again).
  129. 2003-02-25 Nick Drochak <[email protected]>
  130. * File.cs (GetCreationTime): Throw proper execption when path is not
  131. found.
  132. Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <[email protected]>
  133. * MemoryStream.cs: make it behave sanely when the stream is
  134. incrementally expanded.
  135. 2003-02-21 Dick Porter <[email protected]>
  136. * FileStream.cs: Use locks around buffer manipulations. Fixes bug
  137. 32344
  138. 2003-02-18 Dick Porter <[email protected]>
  139. * FileStream.cs: Make FileMode.Append work, and check for Seeking
  140. back over old data (undocumented ms behaviour, throws an exception
  141. if you try). Fixes bug 35975.
  142. 2003-02-17 Dick Porter <[email protected]>
  143. * FileStream.cs: Don't close the handle if the stream doesn't own
  144. it. Patch from Raymond Penners ([email protected]), bug
  145. 35623.
  146. 2003-02-14 Zoltan Varga <[email protected]>
  147. * FileStream.cs (Write): flush after writing the last segment as well.
  148. 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
  149. * StringReader.cs:
  150. (ReadLine): fixed the case when the string ends with a '\n'.
  151. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  152. * MemoryStream.cs: create the buffer of the specified capacity.
  153. 2003-01-31 Patrik Torstensson
  154. * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
  155. the same way as MS does it (performance improvement)
  156. 2003-01-29 Zoltan Varga <[email protected]>
  157. * Directory.cs (GetFileSystemEntries): moved error handling to the
  158. correct instance of GetFileSystemEntries so all callers can enjoy it.
  159. 2003-01-28 Zoltan Varga <[email protected]>
  160. * File.cs: add error handling to Get...Time methods.
  161. 2003-01-26 Zoltan Varga <[email protected]>
  162. * Directory.cs: fix GetParent so it actually works.
  163. 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
  164. * Path.cs: fixlet to ChangeExtension for the case when the path is
  165. empty.
  166. 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
  167. * BufferedStream.cs: don't try to write a 0 sized array on when
  168. flushing the stream.
  169. Fixes bug #37045.
  170. 2003-01-18 Jonathan Pryor <[email protected]>
  171. * FileStream.cs: Add IsAsync property. (Documented in "C# In A Nutshell".)
  172. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  173. * MemoryStream.cs: fixed bug #36319.
  174. 2002-12-16 Eduardo Garcia Cebollero <[email protected]>
  175. * Directory.cs: Some fixes to SMB shares handling, and not compiling
  176. with csc, mcs compiles it correctly (mcs bug 35652)
  177. 2002-12-14 Eduardo Garcia Cebollero <[email protected]>
  178. * Directory.cs: Some fixes related to correct some exceptions thrown
  179. 2002-12-11 Eduardo Garcia Cebollero <[email protected]>
  180. * Directory.cs: Some Exceptions added, fixed GetParent(),
  181. CreateDirectory() should work with unix, native windows and
  182. windows samba shares. Converted end-lines from dos-mode to unix-mode
  183. 2002-12-08 Eduardo Garcia Cebollero <[email protected]>
  184. * Directory.cs: CreateDirectory works now with Absolute paths
  185. too, not only with relative ones.
  186. 2002-12-07 Peter Williams <[email protected]>
  187. * Directory.cs: Don't use the uninitialized pathsumm here.
  188. Don't try and create "" if we're using an absolute path.
  189. 2002-12-07 Eduardo Garcia Cebollero <[email protected]>
  190. * Directory.cs: Now the creation of a new directory works recursively
  191. it will make parents as needed.
  192. 2002-11-21 Gonzalo Paniagua Javier <[email protected]>
  193. * BufferedStream.cs: applied patch from <[email protected]> that
  194. fixes Flush ().
  195. Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <[email protected]>
  196. * StreamWriter.cs: output the encoding preamble at the start of a
  197. stream if needed.
  198. 2002-11-07 Gonzalo Paniagua Javier <[email protected]>
  199. * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
  200. 2002-11-06 Miguel de Icaza <[email protected]>
  201. * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
  202. 2002-10-31 Dick Porter <[email protected]>
  203. * FileStream.cs: Fix buffering properly this time. Also kludge
  204. around broken pipe errors, treating them as EOF instead of
  205. throwing an IO exception.
  206. * MonoIO.cs: Return the error status in a parameter, as the
  207. GetLastError() value has long since been blown away if we try and
  208. look it up in a subsequent internal call invocation.
  209. * FileSystemInfo.cs:
  210. * FileInfo.cs:
  211. * File.cs:
  212. * Directory.cs: MonoIO methods now have an error parameter
  213. 2002-10-31 Gonzalo Paniagua Javier <[email protected]>
  214. * TextReader.cs: implemented ReadBlock ().
  215. 2002-10-30 Miguel de Icaza <[email protected]>
  216. * StreamWriter.cs: Ditto for Null stream.
  217. * BinaryReader.cs: Use Unmarked here too.
  218. * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
  219. is what .NET does.
  220. 2002-10-23 Dick Porter <[email protected]>
  221. * FileStream.cs: Implemented CanSeek, and used it around all the
  222. calls to MonoIO.Seek. Fixed buffering in Read() so that it
  223. doesn't block forever on short reads.
  224. * MonoFileType.cs: New enum for GetFileType
  225. * MonoIO.cs: Added GetFileType
  226. 2002-10-21 Gonzalo Paniagua Javier <[email protected]>
  227. * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
  228. \n (this is what MS does).
  229. 2002-10-18 Dick Porter <[email protected]>
  230. * FileStream.cs: SeekOrigin.End still calculates the offset from
  231. the end of the file with positive values extending the length.
  232. Fixes bug 32471.
  233. 2002-10-06 Gonzalo Paniagua Javier <[email protected]>
  234. * Path.cs: some cleanup. Thanks to Martin Aliger.
  235. 2002-10-03 Gonzalo Paniagua Javier <[email protected]>
  236. * FileStream.cs: throw an exception if trying to open a directory.
  237. Thanks to Martin Aliger.
  238. 2002-10-02 Gonzalo Paniagua Javier <[email protected]>
  239. * Path.cs: fixes bug #28046.
  240. 2002-09-27 Gonzalo Paniagua Javier <[email protected]>
  241. * StreamReader.cs: give more information when wrong parameters passed.
  242. 2002-09-21 Miguel de Icaza <[email protected]>
  243. * FileStream.cs: Do not call FSync on the file.
  244. 2002-09-16 Miguel de Icaza <[email protected]>
  245. * TextWriter.cs (Null): The Null field should be an instance of a
  246. TextWriter class that does nothing, so it is an instance of the
  247. NullTextWriter class.
  248. 2002-09-16 Nick Drochak <[email protected]>
  249. * MemoryStream.cs (Close): Don't throw an exception if the stream
  250. is already closed.
  251. 2002-09-15 Miguel de Icaza <[email protected]>
  252. * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
  253. Flush calls fsync().
  254. The API docs show no explicit mention that Flush() should even do
  255. an fsync, I am thinking that we should drop that from the
  256. runtime.
  257. 2002-09-09 Miguel de Icaza <[email protected]>
  258. * StreamWriter.cs: When no encoding is provided, create an
  259. encoding without markers, this is what MS does.
  260. 2002-09-06 Miguel de Icaza <[email protected]>
  261. * StreamReader.cs: Implement detection of byte marks and skipping
  262. of byte marks at the beginning of the stream.
  263. (ReadToEnd): Use buffered read instead of char-by-char
  264. processing.
  265. Correct the default arguments for creating the StreamReader.
  266. 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
  267. * CheckArgument.cs: fixed check for empty string.
  268. * Path.cs: various fixes. It passes all the tests in new PathTest.
  269. 2002-08-29 Duncan Mak <[email protected]>
  270. * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
  271. the build for gtk#.
  272. 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
  273. * BinaryReader.cs:
  274. * BinaryWriter.cs:
  275. * MemoryStream.cs:
  276. * StreamReader.cs:
  277. * StreamWriter.cs:
  278. * StringReader.cs:
  279. * StringWriter.cs:
  280. * TextWriter.cs: IDisposable fixes.
  281. 2002-08-24 Miguel de Icaza <[email protected]>
  282. * StreamReader.cs: Removed TODOs, as the code seems to be
  283. complete.
  284. * Path.cs (GetTempFileName): Make this routine atomic by not
  285. testing and then creating, but using the create call to ensure
  286. that we own the filename.
  287. 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
  288. * FileLoadException.cs: implemented ToString.
  289. * StreamWriter.cs: added Null field and implemented Write (char) and
  290. Write (char []).
  291. 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
  292. * StreamReader.cs: implemented NullStreamReader.
  293. 2002-08-21 Miguel de Icaza <[email protected]>
  294. * Path.cs (GetDirectoryName): Fix for filenames with size = 1
  295. * File.cs: Removed all references that threw exceptions when the
  296. paths contains a colon, as this is a valid part of an identifier
  297. on Unix.
  298. Everywhere: The String.Empty return from GetDirectoryName means
  299. that there is no directory information about the path.
  300. 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
  301. * FileNotFoundException.cs: use Message and InnerException from base
  302. class. Changed Message and ToString ().
  303. 2002-08-19 Dick Porter <[email protected]>
  304. * BinaryWriter.cs: The length of a string is counted in bytes, not
  305. chars
  306. 2002-08-18 Dick Porter <[email protected]>
  307. * BinaryReader.cs: Fixed buffering
  308. 2002-08-09 Nick Drochak <[email protected]>
  309. * BinaryReader.cs: added virtual to Dispose(bool).
  310. 2002-08-03 Jason Diamond <[email protected]>
  311. * StringWriter.cs: Return UnicodeEncoding for Encoding property.
  312. 2002-08-03 Jason Diamond <[email protected]>
  313. * StreamWriter.cs: Use GetByteCount() to get exact length instead
  314. of GetMaxByteCount when converting chars to bytes.
  315. 2002-07-31 Duncan Mak <[email protected]>
  316. * StreamReader.cs:
  317. (Dispose): Added and implmented.
  318. * StreamWriter.cs:
  319. (Dispose): Fixed visibility.
  320. (Initialize): Fixed visibility, made internal.
  321. * BinaryReader.cs:
  322. (Dispose): Fixed visibility.
  323. 2002-07-28 Gonzalo Paniagua Javier <[email protected]>
  324. * File.cs:
  325. (Create): allow file names without path.
  326. Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <[email protected]>
  327. * FileStream.cs: patch from [email protected] to add
  328. Name property support.
  329. 2002-07-20 Dick Porter <[email protected]>
  330. * MonoIO.cs: Added icall to CreatePipe
  331. 2002-07-18 Gonzalo Paniagua Javier <[email protected]>
  332. * FileInfo.cs: fixes buglet #27940
  333. 2002-07-17 Gonzalo Paniagua Javier <[email protected]>
  334. * Path.cs: removed unneeded line from GetExtension.
  335. 2002-07-12 Gonzalo Paniagua Javier <[email protected]>
  336. * FileStream.cs:
  337. (.ctor): call MonoIO.GetException with the file name.
  338. 2002-07-02 Mike Kestner <[email protected]>
  339. * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
  340. 2002-07-02 Mike Kestner <[email protected]>
  341. * StreamReader.cs: Revert the last Peek change and fix the ReadLine
  342. end of line detection code instead.
  343. 2002-07-02 Gonzalo Paniagua Javier <[email protected]>
  344. * StreamReader.cs:
  345. (Peek): no need to have seek capabilitites.
  346. 2002-06-17 Dietmar Maurer <[email protected]>
  347. * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
  348. * File.cs (Delete): only call Directory.Exists() if DirName != ""
  349. 2002-06-12 Gonzalo Paniagua Javier <[email protected]>
  350. * Directory.cs: fixed bug #26133 and also test if the directory exist
  351. before performing the search.
  352. 2002-06-12 Nick Drochak <[email protected]>
  353. * StringReader.cs (ReadLine): Return null when we get to end of the
  354. string.
  355. 2002-05-22 Lawrence Pit <[email protected]>
  356. * StreamWriter.cs: added ability to write null value
  357. 2002-05-19 Lawrence Pit <[email protected]>
  358. * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
  359. prevent endless loops.
  360. 2002-05-17 Dan Lewis <[email protected]>
  361. * FileStream.cs: Enforce lower bound on buffer size.
  362. 2002-05-16 Piers Haken <[email protected]>
  363. * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
  364. 2002-05-17 Nick Drochak <[email protected]>
  365. * StreamWriter.cs: Implement buffering. Also implemented dispose
  366. pattern as recommended by the MS docs. Must call Close() now
  367. to ensure the buffer is flushed.
  368. 2002-05-15 Nick Drochak <[email protected]>
  369. * Path.cs (GetDirectoryName): Return String.Empty if there is no
  370. directory
  371. * StreamReader.cs: Add some parameter checking on file names.
  372. * StreamWriter.cs: Add some parameter checking on file names.
  373. 2002-05-14 Nick Drochak <[email protected]>
  374. * File.cs: Add parameter checks to most methods. Not completely done,
  375. but all current unit tests pass.
  376. * Path.cs: Implement GetTempFileName().
  377. 2002-05-10 Nick Drochak <[email protected]>
  378. * StreamWriter.cs (Flush): Throw proper exception if internal stream
  379. has already been closed when we try to flush.
  380. 2002/05/10 Nick Drochak <[email protected]>
  381. * FileNotFoundException.cs (ToString): Don't try to use the inner
  382. exception, because it might be null. Use the message instead.
  383. 2002-05-09 Nick Drochak <[email protected]>
  384. * File.cs (Delete): Do not throw an exception if the file does not
  385. exist.
  386. 2002-05-08 Mike Gray <[email protected]>
  387. * File.cs: According to ECMA spec and MS docs Copy(src, dest)
  388. should not overwrite dest by default.
  389. 2002-05-08 Nick Drochak <[email protected]>
  390. * StreamWriter.cs: Add paramter check to constructors and throw
  391. exceptions where appropriate.
  392. Tue May 7 11:47:46 CEST 2002 Paolo Molaro <[email protected]>
  393. * StreamReader.cs: return the number of chars read even if we diddn't
  394. fill the whole buffer (makes Sergey's ilasm work with mono).
  395. 2002-05-07 Mike Gray <[email protected]>
  396. * FileInfo.cs (Create): Implement missing method.
  397. 2002-05-07 Mike Gray <[email protected]>
  398. * File.cs: Implemented CreateText method, and fixed dst compares
  399. to compare against "" instead of null twice.
  400. 2002-05-05 Nick Drochak <[email protected]>
  401. * StreamReader.cs: Throw exceptions where needed. Changed Null field to
  402. use new internal class since null cannot be passed to constructor
  403. anymore. Also, fix a coule of small bugs.
  404. 2002-05-03 Nick Drochak <[email protected]>
  405. * MemoryStream.cs: Refrain from allocating array until the space is
  406. really needed. This fixes a bug in the Length property when the
  407. constructor without the byte array is used.
  408. 2002-05-01 Duncan Mak <[email protected]>
  409. * DirectoryNotFoundException.cs (constructor): Added missing
  410. serialization constructor.
  411. 2002-04-30 Duncan Mak <[email protected]>
  412. * FileLoadException.cs (constructors): Added missing (string,
  413. string) ctor, as well as (string, string, Exception) ctor.
  414. (Message): Added more info to the error message
  415. (ToString): Added. We'll need to add the StackTrace stuff when
  416. that works.
  417. * FileShare.cs: Add a missing field, Inheritable.
  418. * TextReader.cs: Renamed Synchronised method to Synchronized.
  419. * TextWriter.cs: Renamed Synchronised method to Synchronized.
  420. Renamed protected member coreNewLine to CoreNewLine.
  421. 2002-04-30 Sergey Chaban <[email protected]>
  422. * BinaryReader.cs: Allocate buffer before its first use.
  423. Handle end of stream properly. Methods to read native types
  424. (ReadInt* etc.) are little-endian (see Compact Framework docs).
  425. * BinaryWriter.cs: Store data in little-endian format.
  426. Use internal buffer for conversions.
  427. 2002-03-31 Dick Porter <[email protected]>
  428. * Directory.cs: Strip out "." and ".." from returned list
  429. * FileAttributes.cs: Get the right enum values
  430. 2002-03-28 Dietmar Maurer <[email protected]>
  431. * TextWriter.cs (write): added check for null
  432. 2002-03-28 Dan Lewis <[email protected]>
  433. * Directory.cs: Throws DirectoryNotFoundException.
  434. * MonoIO.cs: Fixed to work around enum problem.
  435. 2002-03-27 Dan Lewis <[email protected]>
  436. * StreamReader.cs: Implemented ReadLine() and ReadEnd().
  437. 2002-03-27 Dan Lewis <[email protected]>
  438. * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
  439. DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
  440. wrapper and PAL classes.
  441. * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
  442. 2002-03-25 Mike Kestner <[email protected]>
  443. * MemoryStream.cs (Read): Fixed bug in exception throw.
  444. 2002-03-24 Mike Kestner <[email protected]>
  445. * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
  446. 2002-03-23 Martin Baulig <[email protected]>
  447. * StreamReader.cs: Always do buffered reading, use 4k blocks.
  448. (Read (char[], int, int)): Implemented.
  449. (DiscardBufferedData): Implemented.
  450. 2002-03-21 Mike Kestner <[email protected]>
  451. * StreamReader.cs : Fill out, add buffering, and use encoding.
  452. 2002-03-19 Martin Baulig <[email protected]>
  453. * StreamWriter.cs (StreamWriter (string)): The default is to override
  454. the file, not to append to it.
  455. (StreamWriter (string path, bool append)): When appending, seek to the
  456. end of the file, otherwise truncate the file to zero length.
  457. (Dispose (bool)): Close the internalStream.
  458. (Flush): Flush the interalStream.
  459. (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
  460. 2002-03-19 Dan Lewis <[email protected]>
  461. * FileStream.cs: Flush buffer before FileSetLength.
  462. 2002-02-28 Miguel de Icaza <[email protected]>
  463. * Stream.cs (NullStream): Do not track position, this beast does
  464. nothing in practice.
  465. 2002-03-15 Dan Lewis <[email protected]>
  466. * SearchPattern.cs: New class. Glob matching code for Directory.
  467. * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
  468. 2002/03/15 Nick Drochak <[email protected]>
  469. * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
  470. This code seemed to be copied from somewhere, and it was close,
  471. but didn't match the docs. This was the last bit needed to get
  472. NAnt to compile with our class libs.
  473. 2002-03-12 Duncan Mak <[email protected]>
  474. * EndOfStreamException.cs:
  475. * FileLoadException.cs:
  476. * FileNotFoundException.cs:
  477. * PathTooLongException.cs: Changed the base classes to IOException
  478. instead of SystemException.
  479. * IOException.cs: Added missing constructors.
  480. 2002-03-07 Nick Drochak <[email protected]>
  481. * FileMode.cs: Docs don't say this should be explicitly derived from
  482. int, so just make it a normal Enum.
  483. 2002-03-02 Jason Diamond <[email protected]>
  484. * StringReader.cs: Fixed off-by-one error in Peek() and Read().
  485. 2002-02-12 Nick Drochak <[email protected]>
  486. * PathTooLongException.cs: put it in the correct namespace
  487. * EndOfStreamException.cs: put it in the correct namespace
  488. Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <[email protected]>
  489. * Directory.cs: handle opendir() return NULL and absolute filenames.
  490. 2002-01-31 Duncan Mak <[email protected]>
  491. * FileLoadException.cs:
  492. * FileNotFoundException: Added missing bits for serialization.
  493. Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <[email protected]>
  494. * Directory.cs: allow directories in GetFiles() mask.
  495. 2002-01-23 Miguel de Icaza <[email protected]>
  496. * FileInfo.c (CopyTo, MoveTo): Implement.
  497. * FileStream.cs: Add argument checking to the constructor.
  498. * File.cs: Rewrote most of the file. Implement Copy, Open, Create,
  499. OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
  500. * Directory.cs (Delete): reimplement without using DirectoryInfo.
  501. (Delete): Implement the recursive version.
  502. (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
  503. (Move): Reimplement.
  504. (getNames): dead code removal.
  505. * Path.cs: define an internal DirectorySeparatorStr that we use in
  506. a few spots.
  507. * Wrapper.cs: Updated to new version.
  508. * DirectoryInfo (Delete): Implement using the Directory API.
  509. * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
  510. Delete, Create, Parent, Exists, MoveTo): Implement.
  511. * Directory.cs (GetListing): implement new utility function.
  512. (GetDirectories): Implement.
  513. (GetFileSystemEntries): Implement.
  514. (GetFiles): Implement.
  515. * CheckArgument.cs (Path): Do not allow null by default.
  516. Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <[email protected]>
  517. * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
  518. assembly in corlib.
  519. 2002-01-20 Nick Drochak <[email protected]>
  520. * SeekOrigin.cs: Added Serializable attribute.
  521. 2002-01-19 Duncan Mak <[email protected]>
  522. * PathTooLongException.cs:
  523. * EndOfStreamException.cs: Added to CVS.
  524. Thu Jan 10 12:06:46 MST 2002 Matt Kimball <[email protected]>
  525. * BufferedStream.cs: Initial implemenation. The synchronous
  526. methods for both reading and writing are implemented. I'll do the
  527. asynchronous methods in a bit.
  528. Wed Jan 9 16:04:39 MST 2002 Matt Kimball <[email protected]>
  529. * BinaryWriter.cs: Initial implementation. And it's all there.
  530. * BinaryReader.cs: The constructor now uses the passed in encoding,
  531. not UTF8 always.
  532. Wed Jan 9 13:54:28 MST 2002 Matt Kimball <[email protected]>
  533. * BinaryReader.cs: Initial implementation. I think it's complete.
  534. 2002-01-04 Ravi Pratap <[email protected]>
  535. * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
  536. attribute decorations.
  537. * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
  538. Path.cs, TextReader.cs, TextWriter.cs : Ditto.
  539. * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
  540. Ditto.
  541. 2001-12-11 Dick Porter <[email protected]>
  542. * FileStream.cs: Use handles rather than casting file descriptors.
  543. Added Handle property.
  544. Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <[email protected]>
  545. * CheckPermission.cs: disable ModeAccess() code: it's wrong.
  546. * FileStream.cs: only trow an exception if the read failed in ReadByte().
  547. * StreamReader.cs: implement Peek and Read.
  548. * TextWriter.cs: CLSCompliant updates.
  549. 2001-11-10 Sean MacIsaac <[email protected]>
  550. * FileNotFoundException.cs: Added some constructors
  551. * Path.cs (GetFullPath): Fixed implementation
  552. Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <[email protected]>
  553. * DirectoryNotFoundException.cs: implemented.
  554. Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <[email protected]>
  555. * File.cs: fix signatures of the Open() and OpenRead() functions
  556. (they are static).
  557. Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <[email protected]>
  558. * FileLoadException.cs, FileNotFoundException.cs: added.
  559. 2001-08-28 Dietmar Maurer <[email protected]>
  560. * TextReader.cs: implemented the Read method
  561. * StreamReader.cs: impl. stubs
  562. * StreamWriter.cs: impl.
  563. * TextWriter.cs: implemented Write and WriteLine methods
  564. Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <[email protected]>
  565. * FileAccess.cs, FileMode.cs: change values to be compatible with
  566. the ms ones.
  567. Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <[email protected]>
  568. * IOException.cs: Implemented System.IO.Exception.
  569. 2001-07-18 Michael Lambert <[email protected]>
  570. *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
  571. 2001-07-19 Marcin Szczepanski <[email protected]>
  572. * System.IO.MemoryStream.cs: Added. Had quite a few cases of
  573. "LAMESPEC", but the tests work against the MS implementation so
  574. the major functions are right (ie. Read/Write/Seek). Some more
  575. tests required for the various constructors and exceptions.
  576. 2001-07-16 Marcin Szczepanski <[email protected]>
  577. * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
  578. New class implemenations.
  579. * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.