ChangeLog 69 KB

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