2
0

ChangeLog 85 KB

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