ChangeLog 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034
  1. 2006-04-26 Miguel de Icaza <[email protected]>
  2. * FileStream.cs: Implement the FileOptions usage by passing all
  3. the information to the C layer. Remove the "isAsync" argument for
  4. MonoIO.Open, and instead pass it on the FileOptions.
  5. * FileOptions.cs: Make it build when including WriteThrough
  6. * MonoIO.cs: Update MonoIO.Open signature to drop the async
  7. argument and take FileOptions instead.
  8. 2006-04-21 Zoltan Varga <[email protected]>
  9. * FileStream.cs: Add new net 2.0 ctor.
  10. * FileOptions.cs: New file.
  11. 2006-03-21 Miguel de Icaza <[email protected]>
  12. * Stream.cs: In 2.0 make Close call Dispose(true).
  13. 2006-03-21 Gonzalo Paniagua Javier <[email protected]>
  14. * FileStream.cs: Seek() should flush the buffer, if any. Fixes bug
  15. #77863.
  16. 2006-03-07 Carlos Alberto Cortez <[email protected]>
  17. * Stream.cs: Add 2.0 members to Stream.cs (CanTimeout,
  18. ReadTimeout and WriteTimeout).
  19. 2006-02-27 Gert Driesen <[email protected]>
  20. * File.cs: In 2.0 profile, File.Get****Time(Utc) should not throw
  21. IOException if specified path does not exist. Fixes bug #77641.
  22. 2006-02-26 Gert Driesen <[email protected]>
  23. * FileStream.cs: To match MSFT, ignore FileShare.Inheritable on 2.0
  24. profile. This fixes bug #77644. Improved usefulness of some existing
  25. exception messages.
  26. 2006-02-22 Joerg Rosenkranz <[email protected]>
  27. * MonoIO.cs, MonoIOError.cs: Verbose exception for error 39
  28. (disk full).
  29. 2006-02-03 Zoltan Varga <[email protected]>
  30. * Stream.cs FileStream.cs: Add new 2.0 Dispose () method and protected
  31. Dispose (bool) method.
  32. 2006-01-27 Gonzalo Paniagua Javier <[email protected]>
  33. * TextWriter.cs: Dispose () is public in 2.0.
  34. 2006-01-20 Gonzalo Paniagua Javier <[email protected]>
  35. * UnexceptionalStreamReader.cs: Read (char,int,int) should not
  36. return -1. Thanks to Jakob Berkman.
  37. 2006-01-20 Gonzalo Paniagua Javier <[email protected]>
  38. * StreamReader.cs: (ReadToEnd) if Read returns -1 or 0, we're done.
  39. 2006-01-18 Atsushi Enomoto <[email protected]>
  40. * Path.cs : (GetRandomFileName) use random buffer ;-) It somehow
  41. caused infinite loop on Windows.
  42. 2006-01-18 Atsushi Enomoto <[email protected]>
  43. * DirectoryInfo.cs : on Windows top directory is something like c:\.
  44. 2006-01-17 Joshua Tauberer <[email protected]>
  45. * StreamReader.cs: Avoid two totally unnecessary string creations.
  46. (kind of pedantic)
  47. 2006-01-13 Ben Maurer <[email protected]>
  48. * TextWriter.cs: Call char[],int,int from the Write(char[]) method
  49. both for msft compat and for performance. Thanks to "Mike Glenn"
  50. <[email protected]> for pointing.
  51. 2006-01-12 Ben Maurer <[email protected]>
  52. * File.cs: Support for Read/WriteAllText
  53. 2006-01-11 Sebastien Pouliot <[email protected]>
  54. * Path.cs: Previous fix caused regression of bug #76191. Fixed (again)
  55. 2006-01-09 Sebastien Pouliot <[email protected]>
  56. * Path.cs: Fix c14n on Windows when the first separator after the root
  57. isn't '\'. Fix problems for XSP with 1.1.13.
  58. 2006-01-07 Miguel de Icaza <[email protected]>
  59. * Path.cs (GetTempFilename): Append ".tmp" to the path, some
  60. external application expect this extension.
  61. 2006-01-05 Kornél Pál <[email protected]>
  62. * DriveNotFoundException.cs: Added.
  63. * MonoIO.cs: Added ERROR_INVALID_DRIVE handling. Pass HResult to
  64. IOException constructors.
  65. * MonoIOError.cs: Expose ERROR_INVALID_DRIVE.
  66. 2006-01-02 Sebastien Pouliot <[email protected]>
  67. * UnexceptionalStreamReader.cs: Re-implemented the Read method to fix
  68. the new line handling when reading from the Console (bug #77108).
  69. 2005-12-24 Kornél Pál <[email protected]>
  70. * FileStream.cs: Set buf_start to actual initial position when creating
  71. FileStreams from handles.
  72. 2005-12-23 Sebastien Pouliot <[email protected]>
  73. * DirectoryInfo.cs: Fixed #77090 to fix /home parent to be / (and not
  74. null).
  75. 2005-12-21 Sebastien Pouliot <[email protected]>
  76. * Path.cs: Fixed #77058 where a Windows drive wasn't considered during
  77. path canonalization.
  78. 2005-12-20 Sebastien Pouliot <[email protected]>
  79. * Path.cs: Fixed #77007 where a Windows drive is specified with a
  80. partial path.
  81. 2005-12-15 Sebastien Pouliot <[email protected]>
  82. * DirectoryInfo.cs: Fixed #76903 where the Name property wasn't
  83. correct in some cases. Added special case for Windows drives. Reduced
  84. temporary allocations in Get* methods (removed ArrayList). Added some
  85. new 2.0 methods (partial).
  86. * MonoIO.cs: Removed InvalidPathChars icall as the return value is
  87. different from 1.x and 2.0. The values are now defined in Path.cs.
  88. * Path.cs: Fixed #76191 so that GetFullPath on a Windows drive returns
  89. the current directory (if it's on the specified drive). Fixed 2.0 API
  90. changes (e.g. static class).
  91. * SearchOption.cs: Added missing [Serializable] (2.0).
  92. 2005-12-07 Zoltan Varga <[email protected]>
  93. * Directory.cs: Fix a warning.
  94. 2005-11-10 Dick Porter <[email protected]>
  95. * DirectoryInfo.cs: Fix endless recursion problem with root
  96. directory on windows too. Fixes bug 76191.
  97. 2005-11-06 Zoltan Varga <[email protected]>
  98. * Directory.cs: Add stub for net 2.0 GetFiles method.
  99. * SearchOption.cs: New file.
  100. 2005-10-20 Gonzalo Paniagua Javier <[email protected]>
  101. * StreamReader.cs: made ReadLine() less memory-hungry. Fixes bug #76399.
  102. 2005-10-04 Gonzalo Paniagua Javier <[email protected]>
  103. * MonoIO.cs: replace FindFirst/FindNext/FindClose with
  104. GetFileSystemEntries.
  105. * Directory.cs: simplify GetFileSystemEntries by using the new icall.
  106. 2005-10-01 Ben Maurer <[email protected]>
  107. * BinaryReader.cs: The patch below had a nasty little bug with
  108. long strings that had non-ascii chars in it, because it was
  109. looking at the char count, not the byte count.
  110. 2005-09-11 Ben Maurer <[email protected]>
  111. * BinaryReader.cs: An optimization for ReadString that had been
  112. approved/well tested for a while but never gotten in. Bug #52754.
  113. 2005-09-05 Miguel de Icaza <[email protected]>
  114. * MonoIOError.cs: expose the ERROR_DIR_NOT_EMPTY as we are
  115. throwing it.
  116. * MonoIO.cs: Return a properly named error.
  117. 2005-08-23 Raja R Harinath <[email protected]>
  118. Fix #75679.
  119. * StreamReader.cs (DiscardBufferedData): Reset the decoder too.
  120. 2005-07-25 Gonzalo Paniagua Javier <[email protected]>
  121. * BinaryReader.cs: use Buffer.BlockCopy instead of Array.Copy when
  122. expanding the buffer.
  123. 2005-07-24 Gonzalo Paniagua Javier <[email protected]>
  124. * Directory.cs: don't leak 'find' handles.
  125. 2005-07-05 Dick Porter <[email protected]>
  126. * MonoIO.cs:
  127. * MonoIOError.cs: Add error message for ERROR_WRITE_FAULT.
  128. 2005-07-04 Sebastien Pouliot <[email protected]>
  129. * DirectoryInfo.cs: Fixed recursion problem with root directory
  130. introduced when fixing bug #75443.
  131. 2005-07-02 Sebastien Pouliot <[email protected]>
  132. * FileSystemInfo.cs: Fixed exception arguments. Added ComVisible for
  133. NET_2_0.
  134. * DirectoryInfo.cs: Fixed bug #75443 when the directory ends with a
  135. separator. Added ComVisible for NET_2_0. Normalized line endings.
  136. 2005-05-26 Miguel de Icaza <[email protected]>
  137. * File.cs (ReadAllBytes): add.
  138. Tue May 17 10:54:18 CEST 2005 Paolo Molaro <[email protected]>
  139. * FileStream.cs: complete fix for #74971.
  140. 2005-05-16 Gonzalo Paniagua Javier <[email protected]>
  141. * FileStream.cs: make WriteByte work in all cases when no buffer is
  142. being used. Fixes bug #74971.
  143. 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
  144. * Directory.cs: if the pattern is just a file name and it exists, return
  145. it right away. Fixes bug #72143.
  146. 2005-05-06 Ben Maurer <[email protected]>
  147. * File.cs (Open): If a stream is opened with Append access, you
  148. only want Write access. Fixes bug #71088.
  149. 2005-04-21 Gonzalo Paniagua Javier <[email protected]>
  150. * UnexceptionalStreamWriter.cs: don't throw anything on Flush. Closes
  151. bug #74190.
  152. 2005-04-13 Gonzalo Paniagua Javier <[email protected]>
  153. * Path.cs: don't trim the path in CanonicalizePath on non-windows
  154. systems. Fixes bug #53173.
  155. 2005-04-09 Miguel de Icaza <[email protected]>
  156. * StreamWriter.cs (Initialize): Avoid echoing the preamble to a
  157. file if the position of the stream is not at the beginning. Fixes
  158. bug #74513
  159. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  160. * FileStream.cs:
  161. * MonoIO.cs: remove dead code related to async IO.
  162. 2005-03-24 Sebastien Pouliot <[email protected]>
  163. * Directory.cs: Added a Demand for Read/Write when creating a new
  164. directory.
  165. * FileSystemInfo.cs: Added an InheritanceDemand for Unrestricted on
  166. the class.
  167. * Path.cs: Added a Demand for PathDiscovery in GetFullPath method.
  168. Added an Assert for unrestricted file access to GetTempFilename as
  169. the method must create the (zero-length) file and can be called from
  170. partially trusted code. Added a Demand for unrestricted environment
  171. access to GetTempPath method.
  172. * FileStream.cs: Added a Demand for UnmanagedCode for all constructors
  173. accepting a file handle. Added LinkDemand and InheritanceDemand for
  174. UnmanagedCode to get Handle and SafeFileHandle (2.0) properties.
  175. 2005-03-16 Lluis Sanchez Gual <[email protected]>
  176. * BinaryReader.cs, BinaryWriter.cs: Read/write dobules, floats and
  177. decimals in little endian format.
  178. 2005-03-17 Gonzalo Paniagua Javier <[email protected]>
  179. * MonoIO.cs:
  180. * MonoIOError.cs: handle ERROR_LOCK_VIOLATION.
  181. 2005-03-15 Sebastien Pouliot <[email protected]>
  182. * FileStream.cs: Anonymize part of the path when exceptions are throw
  183. by a FileStream is used for isolated storage. Throw a DirectoryNotFound
  184. Exception for any FileMode not just CreateNew (see new unit tests).
  185. 2005-03-09 Dick Porter <[email protected]>
  186. * MonoIOError.cs:
  187. * MonoIO.cs: Add a few more exception messages
  188. 2005-02-11 Zoltan Varga <[email protected]>
  189. * CheckPermission.cs: Fix warning.
  190. 2005-02-06 Gonzalo Paniagua Javier <[email protected]>
  191. * File.cs: Exists does not throw when there are invalid characters in
  192. the file name.
  193. * MonoIOError.cs: uncommented INVALID_NAME.
  194. Patch by Gert Driesen.
  195. 2005-01-31 Sebastien Pouliot <[email protected]>
  196. * FileStream.cs: Added new constructor to allow anonymous files (i.e.
  197. when Name property is "[Unknown]") for IsolatedStorage. Added
  198. SafeFileHandle property and a reference to Microsoft.Win32.SafeHandles
  199. for the NET_2_0 profile.
  200. 2005-01-28 Sebastien Pouliot <[email protected]>
  201. * FileNotFoundException.cs, FileLoadException.cs: Fixed bad "if ();".
  202. 2005-01-27 Sebastien Pouliot <[email protected]>
  203. * FileNotFoundException.cs, FileLoadException.cs: Protect the fusion
  204. (GAC) log from being disclosed unless code has ControlPolicy and
  205. ControlEvidence. Added missing HResult value. Fixed Message property
  206. to match MS results. Changed ToString to use a StringBuilder.
  207. 2005-01-24 Sebastien Pouliot <[email protected]>
  208. * Directory.cs: Added CAS security to Get|SetCurrentDirectory to
  209. complete Environment security checks.
  210. 2004-12-21 Gonzalo Paniagua Javier <[email protected]>
  211. * BufferedStream.cs: use Buffer.BlockCopyInternal instead of Array.Copy.
  212. 2004-12-13 Gonzalo Paniagua Javier <[email protected]>
  213. * File.cs: delegate to the runtime the task of checking for destination
  214. file existence in Move.
  215. 2004-12-11 Ben Maurer <[email protected]>
  216. * BinaryReader.cs (ReadByte): Check for exceptions here.
  217. 2004-12-06 Atsushi Enomoto <[email protected]>
  218. * TextWriter.cs : create CoreNewLine in another .ctor().
  219. 2004-12-05 Ben Maurer <[email protected]>
  220. * TextWriter.cs (WriteLine): Use CoreNewLine so that this does
  221. not make a string out of the array every time it is called.
  222. Thanks to Atsushi for the idea.
  223. 2004-12-04 Ben Maurer <[email protected]>
  224. * DirectoryInfo.cs (CreateSubDirectory): Check the input here.
  225. * FileSystemInfo.cs (CheckPath): Empty paths are invalid.
  226. 2004-11-19 Dick Porter <[email protected]>
  227. * MonoIOError.cs:
  228. * MonoIO.cs: Add a proper message for sharing violation
  229. 2004-11-01 Ben Maurer <[email protected]>
  230. * MonoIOError.cs: All of these fields just take up room in corlib,
  231. bloating things up. To make it worse, we need to malloc data at
  232. runtime about them. Since most are not used, am commenting them
  233. out
  234. 2004-09-19 Dick Porter <[email protected]>
  235. * UnexceptionalStreamWriter.cs:
  236. * UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
  237. StreamReader that catch IOException. Used by System.Console so
  238. that graphical applications dont get IO errors when their
  239. stdin/out/err vanishes (ie when they spew debug output.)
  240. 2004-09-12 Ben Maurer <[email protected]>
  241. * BinaryReader.cs: Use ReadByte when possible. Gives a tad
  242. of perf, and fixes a bug reported on mono-patches-list
  243. 2004-09-08 Miguel de Icaza <[email protected]>
  244. * File.cs: Added Gettextification, provide a better error message
  245. for #62112
  246. 2004-09-08 Marek Safar <[email protected]>
  247. * Directory.cs,
  248. * File.cs: Class is static for NET_2_0.
  249. 2004-09-06 Ben Maurer <[email protected]>
  250. * MemoryStream.cs (SetLength): Use Array.Clear here
  251. 2004-09-05 Ben Maurer <[email protected]>
  252. * Path.cs (Combine): Array.IndexOf is slow (because of the
  253. special cases it must handle). So, rather than doing IndexOf
  254. just check each type of seperator.
  255. 2004-09-05 Ben Maurer <[email protected]>
  256. * StringReader.cs (StreamReader): remove sourceChars and disposed
  257. variables
  258. (Read): Copy directly from the string, rather than a char []
  259. (Dispose, CheckObjectDisposedException): the flag for being
  260. disposed is now source == null.
  261. 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
  262. * Stream.cs: Close() does not call Flush(). Fixes bug #65340.
  263. 2004-08-26 Ben Maurer <[email protected]>
  264. * StreamWriter.cs: avoid String.ToCharArray for perf.
  265. 2004-08-18 Dick Porter <[email protected]>
  266. * StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
  267. Fixes bug 63063, patch by Laurent Debacker ([email protected]).
  268. 2004-08-13 Dick Porter <[email protected]>
  269. * StreamWriter.cs: Allow FileShare.Read access to the underlying
  270. FileStream, to be compatible with MS. Fixes bug 62152.
  271. 2004-07-06 Dick Porter <[email protected]>
  272. * MonoIO.cs: Add ERROR_INVALID_PARAMETER to the exception list.
  273. Don't blow away the SetFileTime() error before the caller gets to
  274. see it. Part of the bug fix to 60970.
  275. 2004-07-05 Dick Porter <[email protected]>
  276. * CheckPermission.cs:
  277. * File.cs:
  278. * FileInfo.cs:
  279. * MonoIO.cs:
  280. * FileStream.cs: Give the filename when throwing
  281. FileNotFoundException. Fixes bug 61120, based on patch from
  282. Carlos Alberto Cesario <[email protected]>.
  283. 2004-07-05 Dick Porter <[email protected]>
  284. * File.cs: File.Move() should check that the destination doesn't
  285. already exist. Fixes bug 60915, patch based on one from Carlos
  286. Alberto Cesario <[email protected]>.
  287. 2004-06-24 Gonzalo Paniagua Javier <[email protected]>
  288. * Directory.cs: implemented GetLogicalDrives.
  289. 2004-06-24 Lluis Sanchez Gual <[email protected]>
  290. * StreamReader.cs: In DiscardBufferedData(), reset the mayBlock flag.
  291. 2004-06-21 Atsushi Enomoto <[email protected]>
  292. * FileStream.cs :
  293. .ctor() should block write access when created with FileAccess.Write.
  294. 2004-06-21 Atsushi Enomoto <[email protected]>
  295. * FileStream.cs : Check buffer size before creating file.
  296. * StreamReader.cs : Check encoding!=null before creating file.
  297. * File.cs,
  298. MonoIO.cs : Convert DateTime to FileTime after checking
  299. file IO sharing violation (it just fixes the type of exception).
  300. 2004-06-15 Gert Driesen <[email protected]>
  301. * MemoryStream.cs: added TODO for serialization
  302. * StringWriter.cs: added TODO for serialization
  303. 2004-06-15 Gert Driesen <[email protected]>
  304. * TextWriter.cs: fixed CoreNewLine to return char[]
  305. 2004-06-14 Dick Porter <[email protected]>
  306. * Directory.cs:
  307. * File.cs: Catch PATH_NOT_FOUND errors in Exists() too. Fixes bug
  308. 59354.
  309. 2004-06-09 Duncan Mak <[email protected]>
  310. * BufferedStream.cs (SetLength): Add checks and throw the
  311. appropriate Exceptions here instead.
  312. * FileStream.cs (SetLength): Revert part of my last patch, we're
  313. throwing ObjectDisposedException instead of IOException again.
  314. 2004-06-09 Gonzalo Paniagua Javier <[email protected]>
  315. * FileStream.cs: re-enabled ignoring broken pipe errors when reading.
  316. Fixes bug #59639.
  317. 2004-06-08 Duncan Mak <[email protected]>
  318. * Directory.cs (IsRootDirectory): New helper method for
  319. determining if a path is the root directory. Handles both Unix as
  320. well as Windows.
  321. (GetParent): Use IsRootDirectory for the check.
  322. 2004-06-08 Duncan Mak <[email protected]>
  323. * File.cs: Fix line endings, took out ^Ms.
  324. * Directory.cs (GetParent): Return null if the specified path is
  325. the root directory.
  326. * StreamReader.cs (StreamReader):
  327. (Initialize): Add a check that buffer_size must not be less than
  328. or equal to zero.
  329. 2004-06-07 Duncan Mak <[email protected]>
  330. * FileStream.cs (SetLength): The other exceptions have precendence
  331. over ObjectDisposedException, which is not one of the exceptions
  332. listed in the documentation). Also, instead of throwing an
  333. ObjectDisposedException, throw an IOException.
  334. 2004-06-03 Gonzalo Paniagua Javier <[email protected]>
  335. * BufferedStream.cs: fixed typo that prevented Read() from working.
  336. This went out with beta 2. Closes bug #59534.
  337. 2004-05-31 Atsushi Enomoto <[email protected]>
  338. * Directory.cs, File.cs : Fixed Exists() that raised
  339. DirectoryNotFoundException. Quick fix for bug #59354.
  340. 2004-05-30 Sebastien Pouliot <[email protected]>
  341. * BinaryReader.cs: Added missing disposed check for most methods.
  342. Reordered some exceptions to match MS implementation.
  343. * BufferedStream.cs: Fixed Seek logic (check for CanSeek and dispose).
  344. SetLength must also reset Position and check for dispose.
  345. * FileStream.cs: Added missing check for invalid SeekOrigin. Added
  346. missing validations.
  347. 2004-05-27 Dick Porter <[email protected]>
  348. * FileSystemInfo.cs: Take out the error checking in Refresh(), it
  349. broke other stuff
  350. 2004-05-27 Dick Porter <[email protected]>
  351. * MonoIO.cs: Define icalls for Lock() and Unlock()
  352. * FileStream.cs: Implement Lock() and Unlock(). Also improve IO
  353. error reporting.
  354. * FileSystemInfo.cs:
  355. * File.cs:
  356. * Directory.cs: Improve IO error reporting
  357. 2004-05-27 Gonzalo Paniagua Javier <[email protected]>
  358. * FileStream.cs: delay seeking to the end when FileMode.Append is
  359. specified until after buffer initialization. Fixes bug #59151.
  360. 2004-05-26 Sebastien Pouliot <[email protected]>
  361. * BufferedStream.cs: Added globalization and fixed exceptions and
  362. possible integer overflow.
  363. * FileStream.cs: Fixed possible integer overflow.
  364. * MemoryStream.cs: Fixed possible integer overflow.
  365. * StringReader.cs: Fixed possible integer overflow.
  366. * TextWriter.cs: Fixed possible integer overflow.
  367. 2004-05-26 Atsushi Enomoto <[email protected]>
  368. * FileInfo.cs,
  369. DirectoryInfo.cs : ToString() should return constructor arg as is.
  370. This fixes bug #58804.
  371. 2004-05-25 Gonzalo Paniagua Javier <[email protected]>
  372. * Directory.cs: ERROR_FILE_NOT_FOUND in FindFirstFile means there are
  373. no files, but the directory was found. Fixes bug #58875.
  374. 2004-05-24 Duncan Mak <[email protected]>
  375. * StreamWriter.cs (Close): Remember to set the 'closed' flag.
  376. * DirectoryInfo.cs:
  377. * FileInfo.cs: Reformat the whole file to use DOS line endings.
  378. (MoveTo): Return if the destination of Move is the
  379. same as the file's current location.
  380. 2004-05-24 Sebastien Pouliot <[email protected]>
  381. * MemoryStream.cs: Fixed exception reporting to match MS Fx. Fixed the
  382. condition to allow zeroization of existing data when we shrink the
  383. stream.
  384. * StreamReader.cs: Add checks for null encoding. Fixed possible integer
  385. overflow and ArgumentNullException in Read.
  386. * StreamWriter.cs: Add dispose check to Write(char) and Write(char[]),
  387. AutoFlush. Fixed possible integer overflow in Write(char[],int,int).
  388. * StringWriter.cs: Fixed possible integer overflow in Write. Changed
  389. spaces for tabs.
  390. 2004-05-22 Duncan Mak <[email protected]>
  391. * Directory.cs: Reformat the whole file to use Unix line endings
  392. for consistency.
  393. (GetFileSystemEntries): If pattern is String.Empty, always
  394. return an empty string array. Throw the ArgumentException if path
  395. is an empty string (determined using the new helper method)
  396. (IsEmptyString): Returns true on an empty string or a string with
  397. only whitespace characters.
  398. * Path.cs (GetPathRoot): Throw an ArgumentException if the path
  399. argument is String.Empty.
  400. 2004-05-20 Jackson Harper <[email protected]>
  401. * DirectoryInfo.cs: Create subdirectories correctly if more then
  402. one is supplied.
  403. 2004-05-16 Atsushi Enomoto <[email protected]>
  404. * DirectoryInfo.cs: Fixed ToString() as well as FileInfo.
  405. 2004-05-16 Atsushi Enomoto <[email protected]>
  406. * FileInfo.cs: ToString() returns not full path but just the file name.
  407. 2004-05-14 Marek Safar <[email protected]>
  408. * TextWriter.cs: Removed useless [CLSCompliant (false)]
  409. 2004-05-06 Gonzalo Paniagua Javier <[email protected]>
  410. * Directory.cs: use the real wildcard for file names as it is supported
  411. now in io-layer. SearhPattern is not needed now.
  412. 2004-04-30 Ben Maurer <[email protected]>
  413. * BinaryWriter.cs, Stream.cs: ensure we have beforefieldinit.
  414. 2004-04-29 Ben Maurer <[email protected]>
  415. * Path.cs: readonlyificate.
  416. 2004-04-29 Ben Maurer <[email protected]>
  417. * FileStream.cs: constify.
  418. 2004-04-27 Andreas Nahr <[email protected]>
  419. * SearchPattern.cs: Call invariant String.ToLower
  420. 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
  421. * FileStreamAsyncResult.cs: invoke the callback if set as completed
  422. before the asynchronous stuff jumps in.
  423. 2004-04-16 Gonzalo Paniagua Javier <[email protected]>
  424. * FileStream.cs: only pass the async flag set to true when opening the
  425. file and AIO is supported by the underlying system. Fixes bug #56883.
  426. 2004-04-12 Gert Driesen ([email protected])
  427. * FileSystemInfo.cs: Implemented ISerializable, corrected COM
  428. visibility of UTC properties
  429. 2004-04-01 Lluis Sanchez Gual <[email protected]>
  430. * BufferedStream.cs: On Position change, do not reset the buffer if the
  431. new position is in the limits of the buffer. This fixes #49403.
  432. 2003-04-03 Atsushi Enomoto <[email protected]>
  433. * Path.cs : ChangeExtension() does not remove dot(.) when extension is
  434. an empty string.
  435. 2004-04-01 Lluis Sanchez Gual <[email protected]>
  436. * FileSystemInfo.cs: Added InternalRefresh, a virtual method that derived
  437. classes can override to perform class specific refreshing.
  438. * FileInfo.cs: Refresh existence flag when Refresh is called.
  439. * TextWriter.cs: Applied patch by Benjamin Jemlich for bug #52512.
  440. The method Write(char) should do nothing by default.
  441. 2004-03-31 Gonzalo Paniagua Javier <[email protected]>
  442. * BinaryReader.cs: don't modify the underlying stream in Peek(). Fixes
  443. bug #51741. Patch by Nick Vaughan.
  444. 2004-03-25 Lluis Sanchez Gual <[email protected]>
  445. * FileStream.cs: ReadByte(): when buffering is disabled, read the byte
  446. with a direct call to ReadData. In InitBuffer(), if buffering is
  447. disabled, create a buffer of one byte, to be used in ReadByte. This
  448. fixes bug #52361.
  449. 2004-03-25 Lluis Sanchez Gual <[email protected]>
  450. * Path.cs: In GetDirectoryName, fixed check for volumeSeparator. This
  451. fixes bug #53892.
  452. 2004-03-24 Lluis Sanchez Gual <[email protected]>
  453. * File.cs: In Move, throw IOException instead of ArgumentException if
  454. destination is a directory.
  455. * MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
  456. ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
  457. 2004-03-15 Andreas Nahr <[email protected]>
  458. * StreamWriter.cs: Removed unneeded function
  459. 2004-03-15 Gonzalo Paniagua Javier <[email protected]>
  460. * FileStream.cs: added support for asynchronous I/O without using the
  461. OS native libraries if available.
  462. * FileStreamAsyncResult.cs: IAsyncResult for asynch. I/O.
  463. * MonoIO.cs: added BeginRead/Write, GetSupportsAsync. Open has now a
  464. new parameter to tell ifthe file will be used for asynch operations.
  465. * Stream.cs: BeginRead/Write do not use delegates. They just are
  466. actually synchronous.
  467. * StreamAsyncResult.cs: IAsyncResult for Stream.
  468. 2004-03-04 Gonzalo Paniagua Javier <[email protected]>
  469. * Directory.cs: check if the error returned in Exists is different
  470. from 'path not found' and throw the appropiate exception in that case.
  471. See #55160.
  472. 2004-03-02 Gonzalo Paniagua Javier <[email protected]>
  473. * MonoIO.cs: added case for ERROR_FILENAME_EXCED_RANGE.
  474. 2004-02-25 Jackson Harper <[email protected]>
  475. * File.cs: Report the filename when deleting a file fails. Patch
  476. by Gert Driesen. Fixes bug #54855.
  477. 2004-02-24 Gonzalo Paniagua Javier <[email protected]>
  478. * FileStream.cs: remove dangling ^Ms.
  479. 2004-02-19 Gonzalo Paniagua Javier <[email protected]>
  480. * FileStream.cs: (.ctor) Path.DirectoryName can be empty and make
  481. Path.GetFullPath crash. Fixed it.
  482. * MonoIO.cs: fixed typo.
  483. 2004-02-13 Jackson Harper <[email protected]>
  484. * FileStream.cs: Throw some more exceptions for invalid
  485. params. Fixes some unit test failures.
  486. * BufferedStream.cs: If the stream is closed (can't read from it
  487. or write to it) throw an ObjectDisposedException.
  488. Tue Jan 20 23:10:22 CET 2004 Paolo Molaro <[email protected]>
  489. * StreamWriter.cs, TextWriter.cs: comply with the documented
  490. behaviour and use a decode buffer to improve performance.
  491. 2004-01-20 Gonzalo Paniagua Javier <[email protected]>
  492. * Path.cs: now Path.GetFullPath ("/") returns "/" instead of "".
  493. 2004-01-20 Gonzalo Paniagua Javier <[email protected]>
  494. * Path.cs: add the trailing directory separator only for volumes.
  495. Fixes bug #53035.
  496. 2004-01-19 Zoltan Varga <[email protected]>
  497. * IntPtrStream.cs: Fix build bustage.
  498. * IntPtrStream.cs: Add a 'Closed' event. Also throw exceptions after
  499. the stream is closed.
  500. 2004-01-18 Ben Maurer <[email protected]>
  501. * FileStream.cs: Locking from bug #32344 removed. This is not
  502. necessary because the correct fix was actually in the console.
  503. This fixes bug #53026. Miguel de Icaza reviewed/approved this
  504. patch.
  505. 2004-01-14 Zoltan Varga <[email protected]>
  506. * FileStream.cs (.ctor): Avoid allocating a large buffer when reading
  507. from small files.
  508. 2004-01-10 Atsushi Enomoto <[email protected]>
  509. * Path.cs : GetDirectoryName ("c:\readme.txt") should return "c:\"
  510. instead of "c:" . This fixed bug #52735.
  511. 2004-01-04 Nick Drochak <[email protected]>
  512. * Path.cs: Remove defined but unused variable, and also got rid of
  513. some unreachable code. Eliminates some build warnings.
  514. 2003-12-28 Ben Maurer <[email protected]>
  515. * BinaryWriter.cs: use one encoding buffer for writing
  516. strings rather than allocting one/string. HUGE perf
  517. boost when writing many strings.
  518. 2003-12-25 Atsushi Enomoto <[email protected]>
  519. * Path.cs : Fixed GetFullPath() (and CanonicalizePath()),
  520. HasExtension(), GetPathRoot() and IsPathRooted() to fit with tests.
  521. 2003-12-22 Bernie Solomon <[email protected]>
  522. * FileStream.cs: (.ctor) do not set handle
  523. in object until after it is validated via
  524. GetFileType so finalizer doesn't see bad handles and
  525. initialize this.handle to InvalidHandle
  526. 2003-12-19 Bernie Solomon <[email protected]>
  527. * MonoIO.cs: SetFileTime() Failed Open returns InvalidHandle
  528. not Zero
  529. 2003-12-17 Atsushi Enomoto <[email protected]>
  530. * Directory.cs : SetCurrentDirectory() should raise errors for
  531. some kind of arguments.
  532. 2003-12-12 Gonzalo Paniagua Javier <[email protected]>
  533. * Path.cs: GetTempPath () ends with DirectorySeparatorChar. Fixes bug
  534. #52056.
  535. 2003-12-06 Ravindra <[email protected]>
  536. *MonoIO.cs: Added a new exception case. It is thrown
  537. when a directory creation is attempted with a name that
  538. is already used by an existing file.
  539. 2003-11-28 Dick Porter <[email protected]>
  540. * Path.cs: Use the char form of LastIndexOf, so that the
  541. comparison is done with the Invariant culture.
  542. 2003-11-24 Gonzalo Paniagua Javier <[email protected]>
  543. * Directory.cs: provide the path when getting the IOException.
  544. 2003-11-18 John Luke <[email protected]>
  545. * CheckArgument.cs:
  546. (PathLength): fix recursion found by JonK
  547. 2003-11-15 Gonzalo Paniagua Javier <[email protected]>
  548. * Directory.cs:
  549. (GetCurrentDirectory):
  550. (SetCurrentDirectory): moved here from Environment. Handle error cases.
  551. * MonoIO.cs: add path to the default error message.
  552. 2003-11-15 Gonzalo Paniagua Javier <[email protected]>
  553. * StringReader.cs: fixed ReadLine for some cases where there are mixed
  554. '\r' and '\n'. Closes bug #51020.
  555. 2003-11-14 Ben Maurer <[email protected]>
  556. * MemoryStream.cs (.ctor): We need to check if buffer is null
  557. before we get the Length of it.
  558. 2003-11-14 Miguel de Icaza <[email protected]>
  559. * StreamReader.cs, TextReader, StreamReader (Read): Add [Out]
  560. 2003-11-14 Gonzalo Paniagua Javier <[email protected]>
  561. * Directory.cs: allow directory names without wildcards in the pattern.
  562. Fixes bug #3 50969.
  563. * SearchPattern.cs: made InvalidChars and WildcardChars internal.
  564. 2003-11-14 Gonzalo Paniagua Javier <[email protected]>
  565. * FileStream.cs: use the argument name when throwing exception.
  566. * StreamReader.cs:
  567. * StringReader.cs:
  568. * TextReader.cs: added [In] attribute for the array in Read.
  569. 2003-11-12 Gonzalo Paniagua Javier <[email protected]>
  570. * DirectoryInfo.cs: fixed ToString. Closes bug #50842.
  571. 2003-11-12 Miguel de Icaza <[email protected]>
  572. * Directory.cs: Adjust for missing PlatformID.Unix.
  573. 2003-10-28 Miguel de Icaza <[email protected]>
  574. * StreamReader.cs: Add checks for disposed stream from bug report
  575. #48696 (Patrik Reali)
  576. * TextReader.cs (Read): Return the total number of bytes read,
  577. patch from Patrik Realli.
  578. 2003-10-20 Miguel de Icaza <[email protected]>
  579. * FileStream.cs public FileStream (string name, FileMode mode)
  580. constructor: If we pass FileMode.Append, we can not pass
  581. FileAccess.ReadWrite. This fixes bug 44959
  582. 2003-09-26 Miguel de Icaza <[email protected]>
  583. * BufferedStream.cs (Write): Use CanWrite in Write. Patch from
  584. Francisco Figueiredo Jr.
  585. 2003-09-19 Gonzalo Paniagua Javier <[email protected]>
  586. * BinaryReader.cs: return the correct number of bytes read when there
  587. are some bytes from peeking.
  588. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  589. * BufferedStream.cs, FileStream.cs, MemoryStream.cs, Stream.cs:
  590. Added [In,Out] attributes to Read method.
  591. 2003-08-05 Martin Baulig <[email protected]>
  592. * StreamReader.cs (DiscardBufferedData): Do the same like on the
  593. ms runtime: just discard the buffered data, but don't modify the
  594. BaseStream.Position.
  595. 2003-08-04 Martin Baulig <[email protected]>
  596. * StreamReader.cs (DiscardBufferedData): Implemented.
  597. 2003-07-29 Miguel de Icaza <[email protected]>
  598. * IntPtrStream.cs (Read): Use correct offset here; Change the
  599. code to use a byte* instead of an IntPtr to reduce the number of
  600. casts used.
  601. (Read): Use Marshal.Copy instead of the now
  602. deprecated MemCopy.
  603. (IntPtrStream): New stream implementation, it maps to a region in
  604. memory.
  605. 2003-07-23 Duncan Mak <[email protected]>
  606. * StreamReader.cs (Initialize): This method is not exposed in the
  607. API, mark as internal.
  608. Fri Jul 18 14:42:42 CEST 2003 Paolo Molaro <[email protected]>
  609. * MonoIO.cs: 64bit fix from Bernie Solomon <[email protected]>.
  610. 2003-07-16 Dick Porter <[email protected]>
  611. * FileInfo.cs: Update path info when a file is moved. Patch by
  612. John Luke <[email protected]>, fixes bug 44253.
  613. 2003-07-10 Gonzalo Paniagua Javier <[email protected]>
  614. * MemoryStream.cs: fixed bug #46060. Thanks to Carlos Barcenilla.
  615. 2003-06-30 Zoltan Varga <[email protected]>
  616. * FileStream.cs (Dispose): Flush the buffer even if we don't own the
  617. handle.
  618. * FileStream.cs: Add a new constructor parameter to turn off buffering.
  619. This is used by the Console.OpenStandard...() methods. Also fix
  620. argument checking in InitBuffer(), so a zero buffer size is also
  621. rejected.
  622. 2003-06-27 Dietmar Maurer <[email protected]>
  623. * Stream.cs: use async.delegate invoke
  624. 2003-06-18 Nick Drochak <[email protected]>
  625. * FileSystemInfo.cs: Refresh cache when changeing file times.
  626. 2003-06-11 Zoltan Varga <[email protected]>
  627. * FileStream.cs: Fix errors in previous checkins:
  628. (Write): Only take the shortcut route if the data is longer than the
  629. buffer length.
  630. (Write): Flush the buffer before writing out the new data
  631. (Write): Flush the buffer after writing out a segment since otherwise
  632. we will go into an infinite loop.
  633. (FlushBuffer): Remove my last change since it was clearly wrong.
  634. (Seek): Run FlushBuffer () after the in-buffer seek optimization.
  635. (Seek): Only use the in-buffer optimization if the buffer is not
  636. empty.
  637. (Length): Call FlushBuffer () since buffer data might change the size
  638. of the stream.
  639. 2003-06-09 Ville Palo <[email protected]>
  640. * FileStream.cs:
  641. - removed unusefull bugfix (DirectoryNotFoundException)
  642. - Flush before seek.
  643. 2003-06-09 Ville Palo <[email protected]>
  644. * FileStream.cs: Check buffer size before append/read -exceptios
  645. 2003-06-09 Ville Palo <[email protected]>
  646. * FileStream.cs: Check DirectoryNotFound before FileNotFound.
  647. 2003-06-09 Ville Palo <[email protected]>
  648. * FileStream.cs: Does not anymore flush while writing
  649. 2003-06-02 Nick Drochak <[email protected]>
  650. * FileInfo.cs (MoveTo): Throw exceptions when dest exists, and check
  651. for null too.
  652. 2003-05-27 Lluis Sanchez Gual <[email protected]>
  653. * BinaryReader.cs: Stream don't need to be seekable to use PeekChar.
  654. 2003-05-23 Gonzalo Paniagua Javier <[email protected]>
  655. * Path.cs: fixed bug #42631.
  656. 2003-05-22 Zoltan Varga <[email protected]>
  657. * File.cs (Move): Allow moving of directories.
  658. Fix 'destination is a directory' test.
  659. 2003-05-21 Ben Maurer <[email protected]>
  660. * StringWriter.cs: Fixed bug #43431: "StringWriter
  661. .ctor(CultureInfo) does not create a new StringBuilder ()"
  662. 2003-05-11 Zoltan Varga <[email protected]>
  663. * FileStream.cs (FlushBuffer): After a flush, the buffer is
  664. advanced by buf_offset bytes, not buf_length bytes.
  665. 2003-05-16 Dick Porter <[email protected]>
  666. * MonoIO.cs: Implement GetTempPath
  667. 2003-05-14 Gonzalo Paniagua Javier <[email protected]>
  668. * DirectoryInfo.cs: fixed bug #42991.
  669. * Path.cs:
  670. (CanonicalizePath): store the value of the trimmed input string. Make it
  671. work with paths such as "/home/xxx/.".
  672. 2003-05-08 Ben Maurer <[email protected]>
  673. * Path.cs
  674. (CanonicalizePath) Fixed bug #42631, which duplicated the
  675. root part of the path under Windows.
  676. 2003-05-08 Ville Palo <[email protected]>
  677. * FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
  678. LastWriteTimeUtc and CreationTimeUtc
  679. 2003-05-07 Ben Maurer <[email protected]>
  680. * Path.cs
  681. (GetPathRoot) Added support for UNC paths.
  682. (CanonicalizePath) Added optimizations per Miguel's requests.
  683. 2003-05-06 Ville Palo <[email protected]>
  684. * BufferedStream.cs:
  685. - Removed unusefull code.
  686. - Added ObjectDisposedException to Position
  687. - Dont flush if stream is allready closed.
  688. - Flush throws also ObjectDisposedException.
  689. * Directory.cs:
  690. - GetFileSystemEtries: ArgumentNullException if pattern is null
  691. * DirectoryInfo.cs: Fixed little MoveTo () bug.
  692. * FileInfo.cs:
  693. - Exists: If file does not exists when instance is created the
  694. value of the Exists property does not change even if file is created
  695. afterwards.
  696. - Delete: If path is a directory UnauthorizedException is thrown.
  697. - CopyTo: Now we can overwrite file if wanted.
  698. * Path.cs:
  699. - GetFullPath: Now throws exception when path is " ".
  700. 2003-05-04 Ben Maurer <[email protected]>
  701. * Directory.cs (GetLogicalDrives) Marked as MonoTODO
  702. because we need to implement the method on Windows.
  703. * Path.cs
  704. (CanonicalizePath) Added new function to get
  705. rid of . and .. in path names. Need to figure out what
  706. other functions should call this.
  707. (GetFullPath) Added call to the above function.
  708. 2003-05-04 Gonzalo Paniagua Javier <[email protected]>
  709. * StreamReader.cs:
  710. (.ctor): fixed parameters passed to FileNotFoundException.
  711. 2003-04-25 Dietmar Maurer <[email protected]>
  712. * BinaryReader.cs (Read): make sure the buffer is big enough (fix
  713. bug # 40702)
  714. 2003-04-24 Pedro Martinez Julia <[email protected]>
  715. * BufferedStream.cs: Test if it's possible to seek in a Stream
  716. before access to Position. This prevents the exception thrown when
  717. the stream is System.Net.Sockets.NetworkStream.
  718. 2003-04-22 Ville Palo <[email protected]>
  719. * Directory.cs: clean up --> performance improvment. Some exceptions
  720. are now checked in File.cs.
  721. * File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
  722. 2003-04-21 Ville Palo <[email protected]>
  723. * Directory.cs: lots of fixes.
  724. - Added GetXXXtimeUtc () (v1.1) methods.
  725. - Added SetXXXtimeUtc () (v1.1) methods.
  726. 2003-04-20 Igor Nosyryev <[email protected]>
  727. * StringReader.cs (Read): Increment nextChar by charsToRead
  728. instead of count, that will guarantee that the next time the
  729. method is called, it will return 0 on an empty string rather than
  730. throwing an exception
  731. 2003-04-19 Ville Palo <[email protected]>
  732. * BufferedStream.cs: Some fixes, mostly throwing exceptions.
  733. * MemoryStream.cs: Changed the order of exception checking
  734. * StringReader.cs: little clean up
  735. 2003-04-14 Ville Palo <[email protected]>
  736. * BinaryWriter.cs: Fixed decimal writing and lots of
  737. ObjectDisposedExceptions added.
  738. 2003-04-13 Ville Palo <[email protected]>
  739. * BinaryReader.cs: Fix to ReadDecimal() method.
  740. 2003-04-13 Ville Palo <[email protected]>
  741. * StringReader.cs: Added some ObjectDisposedExceptions.
  742. * StringWriter.cs: Added some ObjectDisposedExceptions.
  743. * BinaryReader.cs: Added some ObjectDisposedExceptions.
  744. 2003-04-13 Gonzalo Paniagua Javier <[email protected]>
  745. * FileStream.cs: fixed the windows build. This is an mcs bug. I'll
  746. fill a bug report.
  747. 2003-04-12 Gonzalo Paniagua Javier <[email protected]>
  748. * FileStream.cs: fixed bug #40182 and made more unit test pass.
  749. 2003-04-11 Ville Palo <[email protected]>
  750. * FileStream.cs: Added new methods Lock () and Unlock ()
  751. 2003-04-11 Ville Palo <[email protected]>
  752. * StringReader.cs: Throws exceptions if constructor parameter is null.
  753. 2003-04-11 Ville Palo <[email protected]>
  754. * StringWriter.cs: Now throws an exception if StringBuilder parameter
  755. is null
  756. 2003-04-05 Miguel de Icaza <[email protected]>
  757. * TextWriter.cs: Implemented Synchronized method.
  758. * TextReader.cs: Implemented Synchronized method.
  759. 2003-04-04 Miguel de Icaza <[email protected]>
  760. * FileStream.cs (Read, ReadByte, Seek): throw
  761. ObjectDisposedException if the handle has been released.
  762. (Read): Throw exceptions specified in the spec.
  763. (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
  764. instance methods of FileStream to be thread safe, so remove all
  765. the calls to lock on the object
  766. 2003-03-31 Nick Drochak <[email protected]>
  767. * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
  768. 2003-03-20 Lluis Sanchez Gual <[email protected]>
  769. * FileNotFoundException.cs: fixed serialization bug.
  770. 2003-03-18 Atsushi Enomoto <[email protected]>
  771. * StringWriter.cs : don't release internalString on Dispose().
  772. 2003-03-07 Gonzalo Paniagua Javier <[email protected]>
  773. * StreamReader.cs: fixed bug #39280.
  774. 2003-03-07 Gonzalo Paniagua Javier <[email protected]>
  775. * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
  776. pointing it out.
  777. 2003-03-05 Gonzalo Paniagua Javier <[email protected]>
  778. * MemoryStream.cs: general fixes and reformatted. Passes all tests in
  779. the new MemoryStreamTest.
  780. 2003-03-05 Gonzalo Paniagua Javier <[email protected]>
  781. * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
  782. ToArray even after closing the stream.
  783. 2003-03-03 Gonzalo Paniagua Javier <[email protected]>
  784. * Directory.cs:
  785. (Move): don't use File.Move.
  786. * DirectoryInfo.cs: fixed Name property.
  787. Fixes bug #37755.
  788. 2003-03-02 Gonzalo Paniagua Javier <[email protected]>
  789. * DirectoryInfo.cs: changed ToString to match MS behavior.
  790. * Path.cs: further fixes to GetDirectoryName to return null in the
  791. same cases that MS does.
  792. Fixes bug #38387.
  793. 2003-03-02 Gonzalo Paniagua Javier <[email protected]>
  794. * Path.cs: fixed a couple of bugs reported in #35906.
  795. 2003-03-01 Gonzalo Paniagua Javier <[email protected]>
  796. * Directory.cs: fixed bugs #38939 and #38940. No need for separate
  797. unix/windows/unc shares code paths.
  798. 2003-02-27 Gonzalo Paniagua Javier <[email protected]>
  799. * File.cs: fix by Elan Feingold <[email protected]> for
  800. SetCreationTime, SetLastAccessTime and SetLastWriteTime.
  801. 2003-02-26 Gonzalo Paniagua Javier <[email protected]>
  802. * MemoryStream.cs:
  803. (ToArray): return only the portion of the buffer that contains
  804. data, not the whole buffer. (note: this makes XmlDocument.Load work
  805. again with documents that have a <?xml without the 'encoding'
  806. attribute, which makes gtk-sharp generator work again).
  807. 2003-02-25 Nick Drochak <[email protected]>
  808. * File.cs (GetCreationTime): Throw proper execption when path is not
  809. found.
  810. Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <[email protected]>
  811. * MemoryStream.cs: make it behave sanely when the stream is
  812. incrementally expanded.
  813. 2003-02-21 Dick Porter <[email protected]>
  814. * FileStream.cs: Use locks around buffer manipulations. Fixes bug
  815. 32344
  816. 2003-02-18 Dick Porter <[email protected]>
  817. * FileStream.cs: Make FileMode.Append work, and check for Seeking
  818. back over old data (undocumented ms behaviour, throws an exception
  819. if you try). Fixes bug 35975.
  820. 2003-02-17 Dick Porter <[email protected]>
  821. * FileStream.cs: Don't close the handle if the stream doesn't own
  822. it. Patch from Raymond Penners ([email protected]), bug
  823. 35623.
  824. 2003-02-14 Zoltan Varga <[email protected]>
  825. * FileStream.cs (Write): flush after writing the last segment as well.
  826. 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
  827. * StringReader.cs:
  828. (ReadLine): fixed the case when the string ends with a '\n'.
  829. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  830. * MemoryStream.cs: create the buffer of the specified capacity.
  831. 2003-01-31 Patrik Torstensson
  832. * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
  833. the same way as MS does it (performance improvement)
  834. 2003-01-29 Zoltan Varga <[email protected]>
  835. * Directory.cs (GetFileSystemEntries): moved error handling to the
  836. correct instance of GetFileSystemEntries so all callers can enjoy it.
  837. 2003-01-28 Zoltan Varga <[email protected]>
  838. * File.cs: add error handling to Get...Time methods.
  839. 2003-01-26 Zoltan Varga <[email protected]>
  840. * Directory.cs: fix GetParent so it actually works.
  841. 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
  842. * Path.cs: fixlet to ChangeExtension for the case when the path is
  843. empty.
  844. 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
  845. * BufferedStream.cs: don't try to write a 0 sized array on when
  846. flushing the stream.
  847. Fixes bug #37045.
  848. 2003-01-18 Jonathan Pryor <[email protected]>
  849. * FileStream.cs: Add IsAsync property. (Documented in "C# In A Nutshell".)
  850. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  851. * MemoryStream.cs: fixed bug #36319.
  852. 2002-12-16 Eduardo Garcia Cebollero <[email protected]>
  853. * Directory.cs: Some fixes to SMB shares handling, and not compiling
  854. with csc, mcs compiles it correctly (mcs bug 35652)
  855. 2002-12-14 Eduardo Garcia Cebollero <[email protected]>
  856. * Directory.cs: Some fixes related to correct some exceptions thrown
  857. 2002-12-11 Eduardo Garcia Cebollero <[email protected]>
  858. * Directory.cs: Some Exceptions added, fixed GetParent(),
  859. CreateDirectory() should work with unix, native windows and
  860. windows samba shares. Converted end-lines from dos-mode to unix-mode
  861. 2002-12-08 Eduardo Garcia Cebollero <[email protected]>
  862. * Directory.cs: CreateDirectory works now with Absolute paths
  863. too, not only with relative ones.
  864. 2002-12-07 Peter Williams <[email protected]>
  865. * Directory.cs: Don't use the uninitialized pathsumm here.
  866. Don't try and create "" if we're using an absolute path.
  867. 2002-12-07 Eduardo Garcia Cebollero <[email protected]>
  868. * Directory.cs: Now the creation of a new directory works recursively
  869. it will make parents as needed.
  870. 2002-11-21 Gonzalo Paniagua Javier <[email protected]>
  871. * BufferedStream.cs: applied patch from <[email protected]> that
  872. fixes Flush ().
  873. Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <[email protected]>
  874. * StreamWriter.cs: output the encoding preamble at the start of a
  875. stream if needed.
  876. 2002-11-07 Gonzalo Paniagua Javier <[email protected]>
  877. * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
  878. 2002-11-06 Miguel de Icaza <[email protected]>
  879. * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
  880. 2002-10-31 Dick Porter <[email protected]>
  881. * FileStream.cs: Fix buffering properly this time. Also kludge
  882. around broken pipe errors, treating them as EOF instead of
  883. throwing an IO exception.
  884. * MonoIO.cs: Return the error status in a parameter, as the
  885. GetLastError() value has long since been blown away if we try and
  886. look it up in a subsequent internal call invocation.
  887. * FileSystemInfo.cs:
  888. * FileInfo.cs:
  889. * File.cs:
  890. * Directory.cs: MonoIO methods now have an error parameter
  891. 2002-10-31 Gonzalo Paniagua Javier <[email protected]>
  892. * TextReader.cs: implemented ReadBlock ().
  893. 2002-10-30 Miguel de Icaza <[email protected]>
  894. * StreamWriter.cs: Ditto for Null stream.
  895. * BinaryReader.cs: Use Unmarked here too.
  896. * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
  897. is what .NET does.
  898. 2002-10-23 Dick Porter <[email protected]>
  899. * FileStream.cs: Implemented CanSeek, and used it around all the
  900. calls to MonoIO.Seek. Fixed buffering in Read() so that it
  901. doesn't block forever on short reads.
  902. * MonoFileType.cs: New enum for GetFileType
  903. * MonoIO.cs: Added GetFileType
  904. 2002-10-21 Gonzalo Paniagua Javier <[email protected]>
  905. * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
  906. \n (this is what MS does).
  907. 2002-10-18 Dick Porter <[email protected]>
  908. * FileStream.cs: SeekOrigin.End still calculates the offset from
  909. the end of the file with positive values extending the length.
  910. Fixes bug 32471.
  911. 2002-10-06 Gonzalo Paniagua Javier <[email protected]>
  912. * Path.cs: some cleanup. Thanks to Martin Aliger.
  913. 2002-10-03 Gonzalo Paniagua Javier <[email protected]>
  914. * FileStream.cs: throw an exception if trying to open a directory.
  915. Thanks to Martin Aliger.
  916. 2002-10-02 Gonzalo Paniagua Javier <[email protected]>
  917. * Path.cs: fixes bug #28046.
  918. 2002-09-27 Gonzalo Paniagua Javier <[email protected]>
  919. * StreamReader.cs: give more information when wrong parameters passed.
  920. 2002-09-21 Miguel de Icaza <[email protected]>
  921. * FileStream.cs: Do not call FSync on the file.
  922. 2002-09-16 Miguel de Icaza <[email protected]>
  923. * TextWriter.cs (Null): The Null field should be an instance of a
  924. TextWriter class that does nothing, so it is an instance of the
  925. NullTextWriter class.
  926. 2002-09-16 Nick Drochak <[email protected]>
  927. * MemoryStream.cs (Close): Don't throw an exception if the stream
  928. is already closed.
  929. 2002-09-15 Miguel de Icaza <[email protected]>
  930. * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
  931. Flush calls fsync().
  932. The API docs show no explicit mention that Flush() should even do
  933. an fsync, I am thinking that we should drop that from the
  934. runtime.
  935. 2002-09-09 Miguel de Icaza <[email protected]>
  936. * StreamWriter.cs: When no encoding is provided, create an
  937. encoding without markers, this is what MS does.
  938. 2002-09-06 Miguel de Icaza <[email protected]>
  939. * StreamReader.cs: Implement detection of byte marks and skipping
  940. of byte marks at the beginning of the stream.
  941. (ReadToEnd): Use buffered read instead of char-by-char
  942. processing.
  943. Correct the default arguments for creating the StreamReader.
  944. 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
  945. * CheckArgument.cs: fixed check for empty string.
  946. * Path.cs: various fixes. It passes all the tests in new PathTest.
  947. 2002-08-29 Duncan Mak <[email protected]>
  948. * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
  949. the build for gtk#.
  950. 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
  951. * BinaryReader.cs:
  952. * BinaryWriter.cs:
  953. * MemoryStream.cs:
  954. * StreamReader.cs:
  955. * StreamWriter.cs:
  956. * StringReader.cs:
  957. * StringWriter.cs:
  958. * TextWriter.cs: IDisposable fixes.
  959. 2002-08-24 Miguel de Icaza <[email protected]>
  960. * StreamReader.cs: Removed TODOs, as the code seems to be
  961. complete.
  962. * Path.cs (GetTempFileName): Make this routine atomic by not
  963. testing and then creating, but using the create call to ensure
  964. that we own the filename.
  965. 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
  966. * FileLoadException.cs: implemented ToString.
  967. * StreamWriter.cs: added Null field and implemented Write (char) and
  968. Write (char []).
  969. 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
  970. * StreamReader.cs: implemented NullStreamReader.
  971. 2002-08-21 Miguel de Icaza <[email protected]>
  972. * Path.cs (GetDirectoryName): Fix for filenames with size = 1
  973. * File.cs: Removed all references that threw exceptions when the
  974. paths contains a colon, as this is a valid part of an identifier
  975. on Unix.
  976. Everywhere: The String.Empty return from GetDirectoryName means
  977. that there is no directory information about the path.
  978. 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
  979. * FileNotFoundException.cs: use Message and InnerException from base
  980. class. Changed Message and ToString ().
  981. 2002-08-19 Dick Porter <[email protected]>
  982. * BinaryWriter.cs: The length of a string is counted in bytes, not
  983. chars
  984. 2002-08-18 Dick Porter <[email protected]>
  985. * BinaryReader.cs: Fixed buffering
  986. 2002-08-09 Nick Drochak <[email protected]>
  987. * BinaryReader.cs: added virtual to Dispose(bool).
  988. 2002-08-03 Jason Diamond <[email protected]>
  989. * StringWriter.cs: Return UnicodeEncoding for Encoding property.
  990. 2002-08-03 Jason Diamond <[email protected]>
  991. * StreamWriter.cs: Use GetByteCount() to get exact length instead
  992. of GetMaxByteCount when converting chars to bytes.
  993. 2002-07-31 Duncan Mak <[email protected]>
  994. * StreamReader.cs:
  995. (Dispose): Added and implmented.
  996. * StreamWriter.cs:
  997. (Dispose): Fixed visibility.
  998. (Initialize): Fixed visibility, made internal.
  999. * BinaryReader.cs:
  1000. (Dispose): Fixed visibility.
  1001. 2002-07-28 Gonzalo Paniagua Javier <[email protected]>
  1002. * File.cs:
  1003. (Create): allow file names without path.
  1004. Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <[email protected]>
  1005. * FileStream.cs: patch from [email protected] to add
  1006. Name property support.
  1007. 2002-07-20 Dick Porter <[email protected]>
  1008. * MonoIO.cs: Added icall to CreatePipe
  1009. 2002-07-18 Gonzalo Paniagua Javier <[email protected]>
  1010. * FileInfo.cs: fixes buglet #27940
  1011. 2002-07-17 Gonzalo Paniagua Javier <[email protected]>
  1012. * Path.cs: removed unneeded line from GetExtension.
  1013. 2002-07-12 Gonzalo Paniagua Javier <[email protected]>
  1014. * FileStream.cs:
  1015. (.ctor): call MonoIO.GetException with the file name.
  1016. 2002-07-02 Mike Kestner <[email protected]>
  1017. * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
  1018. 2002-07-02 Mike Kestner <[email protected]>
  1019. * StreamReader.cs: Revert the last Peek change and fix the ReadLine
  1020. end of line detection code instead.
  1021. 2002-07-02 Gonzalo Paniagua Javier <[email protected]>
  1022. * StreamReader.cs:
  1023. (Peek): no need to have seek capabilitites.
  1024. 2002-06-17 Dietmar Maurer <[email protected]>
  1025. * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
  1026. * File.cs (Delete): only call Directory.Exists() if DirName != ""
  1027. 2002-06-12 Gonzalo Paniagua Javier <[email protected]>
  1028. * Directory.cs: fixed bug #26133 and also test if the directory exist
  1029. before performing the search.
  1030. 2002-06-12 Nick Drochak <[email protected]>
  1031. * StringReader.cs (ReadLine): Return null when we get to end of the
  1032. string.
  1033. 2002-05-22 Lawrence Pit <[email protected]>
  1034. * StreamWriter.cs: added ability to write null value
  1035. 2002-05-19 Lawrence Pit <[email protected]>
  1036. * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
  1037. prevent endless loops.
  1038. 2002-05-17 Dan Lewis <[email protected]>
  1039. * FileStream.cs: Enforce lower bound on buffer size.
  1040. 2002-05-16 Piers Haken <[email protected]>
  1041. * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
  1042. 2002-05-17 Nick Drochak <[email protected]>
  1043. * StreamWriter.cs: Implement buffering. Also implemented dispose
  1044. pattern as recommended by the MS docs. Must call Close() now
  1045. to ensure the buffer is flushed.
  1046. 2002-05-15 Nick Drochak <[email protected]>
  1047. * Path.cs (GetDirectoryName): Return String.Empty if there is no
  1048. directory
  1049. * StreamReader.cs: Add some parameter checking on file names.
  1050. * StreamWriter.cs: Add some parameter checking on file names.
  1051. 2002-05-14 Nick Drochak <[email protected]>
  1052. * File.cs: Add parameter checks to most methods. Not completely done,
  1053. but all current unit tests pass.
  1054. * Path.cs: Implement GetTempFileName().
  1055. 2002-05-10 Nick Drochak <[email protected]>
  1056. * StreamWriter.cs (Flush): Throw proper exception if internal stream
  1057. has already been closed when we try to flush.
  1058. 2002/05/10 Nick Drochak <[email protected]>
  1059. * FileNotFoundException.cs (ToString): Don't try to use the inner
  1060. exception, because it might be null. Use the message instead.
  1061. 2002-05-09 Nick Drochak <[email protected]>
  1062. * File.cs (Delete): Do not throw an exception if the file does not
  1063. exist.
  1064. 2002-05-08 Mike Gray <[email protected]>
  1065. * File.cs: According to ECMA spec and MS docs Copy(src, dest)
  1066. should not overwrite dest by default.
  1067. 2002-05-08 Nick Drochak <[email protected]>
  1068. * StreamWriter.cs: Add paramter check to constructors and throw
  1069. exceptions where appropriate.
  1070. Tue May 7 11:47:46 CEST 2002 Paolo Molaro <[email protected]>
  1071. * StreamReader.cs: return the number of chars read even if we diddn't
  1072. fill the whole buffer (makes Sergey's ilasm work with mono).
  1073. 2002-05-07 Mike Gray <[email protected]>
  1074. * FileInfo.cs (Create): Implement missing method.
  1075. 2002-05-07 Mike Gray <[email protected]>
  1076. * File.cs: Implemented CreateText method, and fixed dst compares
  1077. to compare against "" instead of null twice.
  1078. 2002-05-05 Nick Drochak <[email protected]>
  1079. * StreamReader.cs: Throw exceptions where needed. Changed Null field to
  1080. use new internal class since null cannot be passed to constructor
  1081. anymore. Also, fix a coule of small bugs.
  1082. 2002-05-03 Nick Drochak <[email protected]>
  1083. * MemoryStream.cs: Refrain from allocating array until the space is
  1084. really needed. This fixes a bug in the Length property when the
  1085. constructor without the byte array is used.
  1086. 2002-05-01 Duncan Mak <[email protected]>
  1087. * DirectoryNotFoundException.cs (constructor): Added missing
  1088. serialization constructor.
  1089. 2002-04-30 Duncan Mak <[email protected]>
  1090. * FileLoadException.cs (constructors): Added missing (string,
  1091. string) ctor, as well as (string, string, Exception) ctor.
  1092. (Message): Added more info to the error message
  1093. (ToString): Added. We'll need to add the StackTrace stuff when
  1094. that works.
  1095. * FileShare.cs: Add a missing field, Inheritable.
  1096. * TextReader.cs: Renamed Synchronised method to Synchronized.
  1097. * TextWriter.cs: Renamed Synchronised method to Synchronized.
  1098. Renamed protected member coreNewLine to CoreNewLine.
  1099. 2002-04-30 Sergey Chaban <[email protected]>
  1100. * BinaryReader.cs: Allocate buffer before its first use.
  1101. Handle end of stream properly. Methods to read native types
  1102. (ReadInt* etc.) are little-endian (see Compact Framework docs).
  1103. * BinaryWriter.cs: Store data in little-endian format.
  1104. Use internal buffer for conversions.
  1105. 2002-03-31 Dick Porter <[email protected]>
  1106. * Directory.cs: Strip out "." and ".." from returned list
  1107. * FileAttributes.cs: Get the right enum values
  1108. 2002-03-28 Dietmar Maurer <[email protected]>
  1109. * TextWriter.cs (write): added check for null
  1110. 2002-03-28 Dan Lewis <[email protected]>
  1111. * Directory.cs: Throws DirectoryNotFoundException.
  1112. * MonoIO.cs: Fixed to work around enum problem.
  1113. 2002-03-27 Dan Lewis <[email protected]>
  1114. * StreamReader.cs: Implemented ReadLine() and ReadEnd().
  1115. 2002-03-27 Dan Lewis <[email protected]>
  1116. * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
  1117. DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
  1118. wrapper and PAL classes.
  1119. * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
  1120. 2002-03-25 Mike Kestner <[email protected]>
  1121. * MemoryStream.cs (Read): Fixed bug in exception throw.
  1122. 2002-03-24 Mike Kestner <[email protected]>
  1123. * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
  1124. 2002-03-23 Martin Baulig <[email protected]>
  1125. * StreamReader.cs: Always do buffered reading, use 4k blocks.
  1126. (Read (char[], int, int)): Implemented.
  1127. (DiscardBufferedData): Implemented.
  1128. 2002-03-21 Mike Kestner <[email protected]>
  1129. * StreamReader.cs : Fill out, add buffering, and use encoding.
  1130. 2002-03-19 Martin Baulig <[email protected]>
  1131. * StreamWriter.cs (StreamWriter (string)): The default is to override
  1132. the file, not to append to it.
  1133. (StreamWriter (string path, bool append)): When appending, seek to the
  1134. end of the file, otherwise truncate the file to zero length.
  1135. (Dispose (bool)): Close the internalStream.
  1136. (Flush): Flush the interalStream.
  1137. (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
  1138. 2002-03-19 Dan Lewis <[email protected]>
  1139. * FileStream.cs: Flush buffer before FileSetLength.
  1140. 2002-02-28 Miguel de Icaza <[email protected]>
  1141. * Stream.cs (NullStream): Do not track position, this beast does
  1142. nothing in practice.
  1143. 2002-03-15 Dan Lewis <[email protected]>
  1144. * SearchPattern.cs: New class. Glob matching code for Directory.
  1145. * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
  1146. 2002/03/15 Nick Drochak <[email protected]>
  1147. * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
  1148. This code seemed to be copied from somewhere, and it was close,
  1149. but didn't match the docs. This was the last bit needed to get
  1150. NAnt to compile with our class libs.
  1151. 2002-03-12 Duncan Mak <[email protected]>
  1152. * EndOfStreamException.cs:
  1153. * FileLoadException.cs:
  1154. * FileNotFoundException.cs:
  1155. * PathTooLongException.cs: Changed the base classes to IOException
  1156. instead of SystemException.
  1157. * IOException.cs: Added missing constructors.
  1158. 2002-03-07 Nick Drochak <[email protected]>
  1159. * FileMode.cs: Docs don't say this should be explicitly derived from
  1160. int, so just make it a normal Enum.
  1161. 2002-03-02 Jason Diamond <[email protected]>
  1162. * StringReader.cs: Fixed off-by-one error in Peek() and Read().
  1163. 2002-02-12 Nick Drochak <[email protected]>
  1164. * PathTooLongException.cs: put it in the correct namespace
  1165. * EndOfStreamException.cs: put it in the correct namespace
  1166. Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <[email protected]>
  1167. * Directory.cs: handle opendir() return NULL and absolute filenames.
  1168. 2002-01-31 Duncan Mak <[email protected]>
  1169. * FileLoadException.cs:
  1170. * FileNotFoundException: Added missing bits for serialization.
  1171. Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <[email protected]>
  1172. * Directory.cs: allow directories in GetFiles() mask.
  1173. 2002-01-23 Miguel de Icaza <[email protected]>
  1174. * FileInfo.c (CopyTo, MoveTo): Implement.
  1175. * FileStream.cs: Add argument checking to the constructor.
  1176. * File.cs: Rewrote most of the file. Implement Copy, Open, Create,
  1177. OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
  1178. * Directory.cs (Delete): reimplement without using DirectoryInfo.
  1179. (Delete): Implement the recursive version.
  1180. (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
  1181. (Move): Reimplement.
  1182. (getNames): dead code removal.
  1183. * Path.cs: define an internal DirectorySeparatorStr that we use in
  1184. a few spots.
  1185. * Wrapper.cs: Updated to new version.
  1186. * DirectoryInfo (Delete): Implement using the Directory API.
  1187. * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
  1188. Delete, Create, Parent, Exists, MoveTo): Implement.
  1189. * Directory.cs (GetListing): implement new utility function.
  1190. (GetDirectories): Implement.
  1191. (GetFileSystemEntries): Implement.
  1192. (GetFiles): Implement.
  1193. * CheckArgument.cs (Path): Do not allow null by default.
  1194. Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <[email protected]>
  1195. * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
  1196. assembly in corlib.
  1197. 2002-01-20 Nick Drochak <[email protected]>
  1198. * SeekOrigin.cs: Added Serializable attribute.
  1199. 2002-01-19 Duncan Mak <[email protected]>
  1200. * PathTooLongException.cs:
  1201. * EndOfStreamException.cs: Added to CVS.
  1202. Thu Jan 10 12:06:46 MST 2002 Matt Kimball <[email protected]>
  1203. * BufferedStream.cs: Initial implemenation. The synchronous
  1204. methods for both reading and writing are implemented. I'll do the
  1205. asynchronous methods in a bit.
  1206. Wed Jan 9 16:04:39 MST 2002 Matt Kimball <[email protected]>
  1207. * BinaryWriter.cs: Initial implementation. And it's all there.
  1208. * BinaryReader.cs: The constructor now uses the passed in encoding,
  1209. not UTF8 always.
  1210. Wed Jan 9 13:54:28 MST 2002 Matt Kimball <[email protected]>
  1211. * BinaryReader.cs: Initial implementation. I think it's complete.
  1212. 2002-01-04 Ravi Pratap <[email protected]>
  1213. * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
  1214. attribute decorations.
  1215. * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
  1216. Path.cs, TextReader.cs, TextWriter.cs : Ditto.
  1217. * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
  1218. Ditto.
  1219. 2001-12-11 Dick Porter <[email protected]>
  1220. * FileStream.cs: Use handles rather than casting file descriptors.
  1221. Added Handle property.
  1222. Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <[email protected]>
  1223. * CheckPermission.cs: disable ModeAccess() code: it's wrong.
  1224. * FileStream.cs: only trow an exception if the read failed in ReadByte().
  1225. * StreamReader.cs: implement Peek and Read.
  1226. * TextWriter.cs: CLSCompliant updates.
  1227. 2001-11-10 Sean MacIsaac <[email protected]>
  1228. * FileNotFoundException.cs: Added some constructors
  1229. * Path.cs (GetFullPath): Fixed implementation
  1230. Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <[email protected]>
  1231. * DirectoryNotFoundException.cs: implemented.
  1232. Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <[email protected]>
  1233. * File.cs: fix signatures of the Open() and OpenRead() functions
  1234. (they are static).
  1235. Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <[email protected]>
  1236. * FileLoadException.cs, FileNotFoundException.cs: added.
  1237. 2001-08-28 Dietmar Maurer <[email protected]>
  1238. * TextReader.cs: implemented the Read method
  1239. * StreamReader.cs: impl. stubs
  1240. * StreamWriter.cs: impl.
  1241. * TextWriter.cs: implemented Write and WriteLine methods
  1242. Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <[email protected]>
  1243. * FileAccess.cs, FileMode.cs: change values to be compatible with
  1244. the ms ones.
  1245. Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <[email protected]>
  1246. * IOException.cs: Implemented System.IO.Exception.
  1247. 2001-07-18 Michael Lambert <[email protected]>
  1248. *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
  1249. 2001-07-19 Marcin Szczepanski <[email protected]>
  1250. * System.IO.MemoryStream.cs: Added. Had quite a few cases of
  1251. "LAMESPEC", but the tests work against the MS implementation so
  1252. the major functions are right (ie. Read/Write/Seek). Some more
  1253. tests required for the various constructors and exceptions.
  1254. 2001-07-16 Marcin Szczepanski <[email protected]>
  1255. * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
  1256. New class implemenations.
  1257. * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.