b0276bd38b681a66443cef3b7472dc9c0e905ff5
[mono.git] / mcs / class / System.Windows.Forms / System.Resources / ChangeLog
1 2010-02-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
2
3         * ResXResourceReader.cs: handle resource file comments.
4         Patch by Jeffrey Alvarez. Bug #582440 fixed.
5
6 2009-02-24  Marek Habersack  <mhabersack@novell.com>
7
8         * ResXFileRef.cs: the class must be internal when compiled as part
9         of System.Web
10
11 2008-04-18  Marek Habersack  <mhabersack@novell.com>
12
13         * ResXResourceWriter.cs, ResXResourceReader.cs, ResXDataNode.cs,
14         ResXFileRef.cs: if compiled as part of System.Web, make the
15         classes internal.
16
17 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
18
19         * ResXDataNode.cs: Modified argument name to fix corcompare error.
20
21 2008-03-04  Jonathan Pobst  <monkey@jpobst.com>
22
23         * ResXResourceWriter.cs: Implement or stub the remaining 2.0 bits
24         to this.
25
26 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
27
28         * ResXResourceReader.cs: Avoid unnecessary initialization of
29         useResXDataNodes field. Modified argument names to match MS. When
30         UseResXDataNodes is true, then never use the metadata hashtable.
31         * ResXFileRef.cs: Only support convert from fileref to MemoryStream
32         on 2.0 profile.
33         * ResXResourceWriter.cs: Modified argument names to match MS.
34         * ResXDataNode: Fixed line endings.
35
36 2008-01-21  Zoltan Varga  <vargaz@gmail.com>
37
38         * ResXFileRef.cs (ConvertFrom): Add special support for MemoryStream. Fixes
39         #354994.
40
41 2008-01-20  Olivier Dufour <olivier.duff@gmail.com>
42
43         * ResXDataNode.cs: Add GetNodePosition, GetValueTypeName, GetValue
44         * ResXResourceReader.cs: Add Node Position
45
46 2007-12-07  Atsushi Enomoto  <atsushi@ximian.com>
47
48         * ResXResourceReader.cs: fix build.
49
50 2007-12-01  Olivier Dufour <olivier.duff@gmail.com>
51
52         * ResXResourceReader.cs: Add support of assemblyName, metadata and useResXDataNode. 
53
54 2007-09-09  Gert Driesen  <drieseng@users.sourceforge.net>
55
56         * ResXResourceReader.cs: First consider MIME type, if set, regardless
57         of the presence of a type attribute. Only convert from base64 string
58         if "mimetype" is "...bytearray.base64" and type is set. When no MIME
59         type is set, ignore value of resource with a type, if the type is not
60         byte [] or has no TypeConverter that can convert from string. On 1.0
61         profile, use string value if "mimetype" or "type" are set and no
62         conversion was done.
63
64 2007-05-23  Andreia Gaita <avidigal@novell.com>
65
66         * ResXResourceReader.cs: Ignore comment nodes, for now. Fix 
67         failing tests.
68
69 2007-05-23  Andreia Gaita <avidigal@novell.com>
70
71         * ResXResourceReader.cs: Fix CDATA detection
72
73 2007-05-21  Andreia Gaita <avidigal@novell.com>
74
75         * ResXDataNode.cs: Added
76         * ResXResourceWriter.cs: Add 2.0 support for ResXDataNode resource.
77         * ResXResourceReader.cs: Added support for comment nodes (coming from
78         ResXDataNode), fix bug on GetDataValue, refactor code to guidelines.
79
80 2007-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
81
82         * ResXFileRef.cs: byte [] is only supported on 2.0 profile.
83
84 2007-03-12   Frederik Carlier <frederik.carlier@ugent.be>
85
86         * ResXFileRef.cs: Add support for byte[] types.
87
88         Fixes 81122
89
90 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
91
92         * ResXFileRef.cs: On 2.0 profile, special case files with .ico 
93         extension to retain their actual dimension.
94
95 2007-02-10  Gert Driesen  <drieseng@users.sourceforge.net>
96
97         * ResXResourceReader.cs: Add additional checks for validity of reader
98         and writer.
99
100 2007-02-04  Gert Driesen  <drieseng@users.sourceforge.net>
101
102         * ResXResourceReader.cs: Added support for BasePath (2.0 only). Lazy load
103         resources in GetEnumerator. Always verify resheader (resmimetype). When
104         loading resources from file, release file once reading is finished.
105         Exception compatibility fixes. Allow data & resheader elements to be in
106         non-default namespace. Do not allow data element without name.
107         * ResXFileRef.cs: In ConvertFrom, return null if value is not a string.
108         On 2.0 profile, throw ArgumentException if value consists of only a single
109         part. Added FileName, TypeName, TextFileEncoding property (public on
110         2.0 only). Fixed ToString to including encoding.
111
112 2007-01-29  Marek Habersack  <grendello@gmail.com>
113
114         * ResXFileRef.cs: Remove extra ;utf8 from the System.String name
115
116 2007-01-29  Miguel de Icaza  <miguel@novell.com>
117
118         * ResXFileRef.cs: Catch the string case and create strings with
119         the specified encoding from its string source.
120
121 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
122
123         * ResXResourceReader.cs: For invalid mime type, return value as string
124         on 1.0 profile. This matches MS.
125
126 2006-10-03  Robert Jordan  <robertj@gmx.net>
127
128         * ResXResourceReader.cs: Factor out parse_data_node () from load_data ()
129         to be able to correctly handle data nodes that occur before resheader.
130         Fix the handling of objects that have a byte[] converter.
131         Use the type resolver.
132
133         * ResXResourceWriter.cs: Fix AddResource (string, object) to accept
134         only serializable type, matching MS.NET.
135         Fix WriteBytes to not emit the mimetype attribute when the
136         type is byte[], otherwise MS.NET won't parse correctly.
137
138 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
139
140         * ResXResourceReader.cs: Handle empty mimetype just like a null 
141         mimetype. Fix bug #77481.
142         * ResXResourceWriter.cs: Fix to InitWriter method by Atsushi. Fix
143         bug #79039.
144
145 2006-03-29  Mike Kestner  <mkestner@novell.com>
146
147         * ResXResourceWriter.cs: Make Dispose() virtual.
148
149 2006-01-14  Robert Jordan  <robertj@gmx.net>
150
151         * ResXResourceReader.cs: Fix for bug #77253. Thanks to Marek Habersack
152         (grendello@gmail.com).
153
154 2005-12-05  Peter Bartok  <pbartok@novell.com>
155
156         * ResXResourceReader.cs: Removed previous patch. More than just Byte[]
157           has that mime type and the patch was causing things to fail.
158           Since our writer no longer emits the mimetype this should be fine.
159
160 2005-12-01  Robert Jordan  <robertj@gmx.net>
161
162         * ResXResourceReader.cs: Handle mimetype="application/x-microsoft.net.object.bytearray.base64" correctly. Fixes the decoding of System.Byte[].
163         * ResXResourceWriter.cs: Fixed AddResource (string, object) to pass
164         control to AddResource (string, byte[]) if the value parameter is
165         a byte[]. Removed the emitting of the mimetype attribute for
166         System.Byte[].
167
168 2005-11-30  Peter Bartok  <pbartok@novell.com>
169
170         * ResXResourceReader.cs: Handle System.Byte[] encodings without
171           needing a typeconverter (This fixes bug #76414)
172
173 2005-11-30  Robert Jordan  <robertj@gmx.net>
174
175         * ResXResourceReader.cs, ResXResourceWriter.cs: Made string conversions
176         culture-invariant.
177         * ResXResourceWriter.cs: Fixed AddResource (string, object) to emit
178         the type attribute when the object has a type converter.
179
180 2005-10-04  Peter Bartok  <pbartok@novell.com>
181
182         * ResXResourceReader.cs, ResXResourceWriter.cs: Added call
183           to GC.SuppressFinalize() in dispose method. Fixes #76330
184
185 2005-05-13  Peter Bartok  <pbartok@novell.com>
186
187         * ResXResourceWriter.cs: 
188           - Fixed/Improved AddResource(), now only uses string converter if 
189             the converter supports both directions
190           - Added ability for AddResource(string, object) to detect if
191             a byte[] converter is supported for the object, if so it now calls
192             AddResource(string, byte[]) for those
193           - WriteBytes: Changed to write it's base64 output as pretty 
194             as Microsoft's, inserting newlines every 80 chars
195           - WriteBytes: Added output of mimetype even if type is specified
196
197 2005-05-11  Peter Bartok  <pbartok@novell.com>
198
199         * ResXResourceSet.cs: Implemented
200         * ResXFileRef.cs: Implemented
201         * ResXNullRef.cs: Added missing attribute
202         * ResXResourceReader.cs: Implemented missing .ctor()s and other
203           assorted fun stuff, should now be complete
204         * ResResourceWriter.cs: Implemented missing methods and added
205           missing static fields
206
207 2005-04-14  Jackson Harper  <jackson@ximian.com>
208
209         * ResXResourceReader.cs: Use serialization on values that have a
210         mime type set but no type.
211
212 2005-02-16  Peter Bartok  <pbartok@novell.com>
213
214         * ResXResourceReader.cs, ResXResourceWriter.cs: Removed sealed
215           attribute from classes
216
217 2005-02-12  Geoff Norton  (gnorton@customerdna.com)
218
219         * ResXResourceReader.cs (load_data): Undo previous change as
220         ResXNullRef is now properly handled.
221         * ResXNullRef.cs: Added
222         
223 2005-02-11  Geoff Norton  (gnorton@customerdna.com)
224
225         * ResXResourceReader.cs (load_data): Temporarily re-introduce the 
226         old failure for types that we cannot yet handle to allow Npgsql to
227         build.
228         
229 2005-02-11  Raja R Harinath  <rharinath@novell.com>
230
231         * ResXResourceReader.cs (load_data): Make exception more informative.
232
233 2005-02-10  Geoff Norton  <gnorton@customerdna.com>
234
235         * ResXResourceReader.cs: Implement the ability to convert the
236         MS Base64 encoded objects.  Implement the ability to convert objects
237         to their type rather than just to string.
238
239 2004-11-08 14:28  pbartok
240
241         * ResXResourceReader.cs:
242           - BenM's Fix for bug 68260
243
244 2004-10-13 08:14  pbartok
245
246         * ResXResourceReader.cs:
247           - Patch by joel.reed@ddiworld.com (joel) to handle CDATA sections.
248
249 2004-08-29 22:36  pbartok
250
251         * ResXResourceReader.cs, ResXResourceWriter.cs:
252           - Transfered files from previous version of System.Windows.Forms
253           - Added full copyright header
254