2007-10-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / class / corlib / System.Resources / ChangeLog
1 2007-10-27  Gert Driesen  <drieseng@users.sourceforge.net>
2
3         * ResourceManager.cs: Removed temporary workaround for bug #43567.
4         Reworked basename to only throw ArgumentException if resource with
5         name ending on ".resources" does not actually exist. Fixes bug
6         #336283. Do not throw exception in GetStream since this is already
7         done in InternalGetResourceSet. In InternalGetResourceSet, do not
8         throw MissingManifestResourceException when culture is null. Fixed
9         MissingManifestResourceException message to match MS. When using
10         file-based ResourceManager, then also throw an exception when file
11         does not exist for neutral culture.
12
13 2007-09-17  Gert Driesen  <drieseng@users.sourceforge.net>
14
15         * ResourceManager.cs: Move code for determining manifest resource
16         name into separate method. Only use satellite assemblies for
17         non-invariant cultures. For invariant culture, only load resources
18         from main assembly.
19
20 2007-09-17  Gert Driesen  <drieseng@users.sourceforge.net>
21
22         * ResourceManager.cs: BaseName(Field) should return only the name.
23         Added resourceSource field to store the actual type, which we need for
24         the namespace. Added CheckBaseName method to avoid code duplication.
25         Only check whether basename does not end in '.resources' on 1.0
26         profile. Fixed paramname of ArgumentNullExceptions to match MS.
27         Modified GetManifestResourceStreamNoCase to use resourceSource field
28         to construct manifest resource name. Modified GetStream to use
29         CurrentUICulture when culture is null. Fixed InternalGetResourceSet
30         to use invariant resources when culture is the neutral culture.
31         Code formatting.
32 >
33 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
34
35         * ResourceReader.cs: Fixed exception message to match MS. Removed
36         duplicate checks from string ctor.
37
38 2007-08-09  Atsushi Enomoto  <atsushi@ximian.com>
39
40         * ResourceReader.cs : implemented GetResourceData(). Resources with
41           unresolvable types could still be parsed, so hold type names
42           instead of types.
43
44 2007-07-16  Rodrigo Kumpera  <rkumpera@novell.com>
45
46         * ResourceReader.cs (ResourceValue): Put the null resource check
47           before the resource version 2 check, this fixes bug #81757
48
49 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
50
51         * ResourceWriter.cs : fix for runtime serialization type index.
52           Fixed bug #81759.
53
54 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
55
56         * ResourceWriter.cs : temporarily disable 2.0 output until I get
57           bug #81759 fixed.
58
59 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
60
61         * IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
62           SatelliteContractVersionAttribute.cs ResourceManager.cs
63           IResourceReader.cs ResourceSet.cs ResourceWriter.cs
64           ResourceReader.cs UltimateResourceFallbackLocation.cs
65           MissingManifestResourceException.cs :
66           implemented 2.0 resource support (write, and remaining read bits)
67           and GetStream(). Cosmetic attributes fixes.
68
69 2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>
70
71         * MissingSatelliteAssemblyException.cs : new file.
72
73 2007-02-16  Gert Driesen  <drieseng@users.sourceforge.net>
74
75         * ResourceReader.cs: Fixed typo.
76
77 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
78
79         * ResourceManager.cs: Don't create the ResourceSets hashtable in the
80         protected ctor, instead move it to the public ctors. Fixes some not
81         working nunit tests. Also, return a closed ResourceSet instead of
82         creating a new one. Fixes one more test. If only BaseNameField is
83         provided, try to create a resource set from the BaseNameField. One
84         more test that passes now.
85         * ResourceSet.cs: Remove isDisposed. Not needed anymore.
86
87 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
88
89         * ResourceManager.cs: Iterate through the values of the ResourceSets
90         hashtable in ReleaseAllResources instead through the hashtable itself.
91
92 2006-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
93
94         * ResourceReader.cs: Support reading byte arrays in v2 resource files.
95         Patch provided by Red Forks. Fixes bug #79976.
96
97 2006-10-29  Alexander Olk  <alex.olk@googlemail.com>
98
99         * ResourceSet.cs, ResourceManager.cs: Calling ResourceSet.Close()
100           disposes a resource set. A closed resource set will now be
101           removed from ResourceSets. Fixes bug #79182.
102
103 2006-03-14  Robert Jordan  <robertj@gmx.net>
104
105         * ResourceManager.cs: Don't stop the resource set lookup until
106         the invariant culture is reached. Fixes bug #77242.
107
108 2005-11-19  Zoltan Varga  <vargaz@gmail.com>
109
110         * Win32Resources.cs: Add a new 'FileVersion' property.
111
112 2005-07-25  Marek Safar  <marek.safar@seznam.cz>
113
114         *  ResourceReader.cs: Implemented reading of primitives for version 2.
115
116 2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>
117
118         *  ResourceReader.cs, ResourceSet.cs: Added a LinkDemand for 
119         SerializationFormatter when using a Stream constructor (other ctors
120         have different security - e.g. FileIOPermission for opening a file).
121
122 2005-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
123
124         * ResourceManager.cs: use culture.Equals in InternalGetResourceSet().
125
126 2005-02-12  Geoff Norton  <gnorton@customerdna.com>
127
128         * ResourceReader.cs: If a resource type index is -1 return null 
129         instead of throwing an exception
130         * ResourceWriter.cs: If an object is null; encode it with type index
131         -1 instead of throwing an exception.
132         
133 2005-02-11  Zoltan Varga  <vargaz@freemail.hu>
134
135         * Win32Resources.cs: Fix warning.
136
137 2004-12-06  Ben Maurer  <bmaurer@ximian.com>
138
139         * ResourceManager.cs (InternalResourceManager): on msft, they
140         search for a case-insenstitive match too here.
141
142 2004-05-02  Sebastien Pouliot  <sebastien@ximian.com>
143
144         * ResourceManager.cs: Avoid endless recursion when a resource file
145         isn't found.
146
147 2004-04-08  Lluis Sanchez <lluis@ximian.com>
148
149         * ResourceSet.cs: Added minor null check.
150
151 2004-02-03  Jackson Harper <jackson@ximian.com>
152
153         * ResourceSet.cs: Do not throw an exception for null strings.
154         
155 2004-01-13  Zoltan Varga  <vargaz@freemail.hu>
156
157         * Win32Resources.cs (Win32VersionInfoResource): Add more properties.
158
159 2004-01-09  Zoltan Varga  <vargaz@freemail.hu>
160
161         * Win32Resources.cs (Win32VersionInfoResource:WriteTo): Add padding
162         at the end of each string entry.
163
164         * Win32Resources.cs: Fix warnings not detected by mcs.
165
166 2004-01-08  Zoltan Varga  <vargaz@freemail.hu>
167
168         * Win32Resources.cs: Organize win32 resources into a class hierarchy
169         with the class Win32Resource as the abstract superclass. Add 
170         Win32ResFileReader and Win32IconFileReader classes and the 
171         corresponding resource types.
172
173         * Win32Resources.cs (Win32VersionInfoResource): Fix version number 
174         calculation. Add Language property.
175
176 2004-01-05  Zoltan Varga  <vargaz@freemail.hu>
177
178         * Win32Resources.cs: New file.
179
180         * Win32Resources.cs: The value of properties can't be empty.
181
182         * Win32Resources.cs: Add Win32ResourceType enumeration. Add accessors
183         for well-known property names. Add missing namespace declaration.
184
185 2003-12-17  Zoltan Varga  <vargaz@freemail.hu>
186
187         * ResourceWriter.cs (Stream): New internal property used by Ref.Emit.
188
189 2003-11-28  Dick Porter  <dick@ximian.com>
190
191         * ResourceSet.cs: Do string compares with the Invariant culture.
192
193 2003-11-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
194
195         * ResourceSet.cs: Implemented v1.1 updates
196
197 2003-09-07  Dick Porter  <dick@ximian.com>
198
199         * Temporary workaround for bug 43567, so that Npgsql at least
200         can run.
201
202 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
203
204         * ResourceManager.cs: fixed infinite loop when the resource is not
205         found. Also fixes bug #34196.
206
207 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
208
209         * ResourceManager.cs: enabled the code that calls GetSatelliteAssembly
210         and ignore the exception thrown if the assembly cannot be loaded.
211
212 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
213
214         * ResourceManager.cs: fixed the name for the file when the culture is
215         not de invariant culture. Commented out the GetSatelliteAssembly code
216         to avoid NotImplementedException being thrown.
217
218 2002-08-19  Dick Porter  <dick@ximian.com>
219
220         * ResourceWriter.cs: Implemented all methods
221
222         * ResourceReader.cs: Cope with our ResourceSet class name, as well
223         as theirs
224
225 2002-08-18  Dick Porter  <dick@ximian.com>
226
227         * ResourceReader.cs: Finished basic implementation.  Some
228         optimisation in conjunction with ResourceSet still possible though
229
230 2002-08-14  Dick Porter  <dick@ximian.com>
231
232         * ResourceSet.cs: Throw the correct exceptions
233
234         * ResourceManager.cs: Implemented all unfinished methods
235
236 2002-03-12  Duncan Mak  <duncan@ximian.com>
237
238         * MissingManifestResourceException.cs: This should inherit from
239         SystemException, not Exception.
240
241 2002-01-26  Nick Drochak  <ndrochak@gol.com>
242
243         * ResourceReader.cs: Finsished reading resource files with just strings
244         in them.  Need to figure out other types, and also resources with
245         multiple types in the same file.
246
247 2002-01-24  Nick Drochak  <ndrochak@gol.com>
248
249         * ResourceReader.cs: Implemented constructors. Started on the 
250         GetEnumerator() method.  Not done yet, but comitting for 
251         'disaster recovery' purposes.
252
253 2002-01-19  Duncan Mak  <duncan@ximian.com>
254
255         * *.cs: Fixed indentation. There was a stupid bug in my .emacs file.
256
257 2002-1-17  Duncan Mak  <duncan@duncan@ximian.com>
258
259         * ResourceSet.cs: Implemented GetObject (string, bool) and GetString
260         (string, bool). ResourceSet has no more MonoTODOs! Also added in the
261         Serializable attribute.
262         
263         * *.cs: convert to Miguel's brace style.
264
265 2002-01-17  Duncan Mak  <duncan@ximian.com>
266
267         * ResourceManager.cs: Fixed GetNeutralResourcesLanguage () and added
268         new attributes documented in 1.0 SDK.
269
270 2002-01-17  Duncan Mak  <duncan@ximian.com>
271
272         * ResourceWriter.cs: Added MonoTODO decorations.
273
274         * SatelliteContractVersionAttribute.cs: added new attributes in 1.0 SDK.
275
276         * NeutralResoucesLanguageAttribute.cs: added new attributes in 1.0 SDK
277         
278 2002-01-16  Duncan Mak  <duncan@ximian.com>
279
280         * ResourceReader.cs: Fixed some typos.
281
282         * ResourceManager.cs: After reading the tutorial from the SDK,
283         finished all the ResourceManager constructors and removed those
284         MonoTODO tags.
285         
286         Removed MonoTODO from GetNeutralResourcesLanguage (Assembly)
287         because Miguel just implemented the whole class, including the
288         constructor that I needed (CultureInfo (string)).
289
290         Updated fields after reading the new docs from the final SDK.
291
292         * ResXFileRef.cs, ResXResourceReader.cs: Removed. They are part of
293         Windows.Forms and require System.Xml, which we don't have access to.
294
295 2002-01-13  Duncan Mak  <duncan@ximian.com>
296
297         * ResourceManager.cs: Added more MonoTODOs and cleaned up some 
298         indenting.
299
300 2002-01-09  Duncan Mak  <duncan@ximian.com>
301
302         * ResourceManager.cs: Fixed the GetSatelliteContractVersion()
303         method. It was missing a cast before. Removed MonoTODO
304         attribute. ;-) It was tested by John Barnette, so this shouldn't break
305         the build.
306
307         * ResourceManager.cs: Removed MonoTODO attribute on GetString
308         (string), as I believe it's correct. However, GetString
309         (string, CultureInfo) is definitely broken, so I'm marking it with
310         MonoTODO there. I also added MonoTODO to IntenalGetResourceSet().
311
312 2002-01-06  Duco Fijma <duco@lorentz.xs4all.nl>
313         * Finalizing IResourceReader and IResourceWriter interfaces: 
314           Added "new"-modifier to IResourceReader.GetEnumerator
315         * Fixed compilation issues in other *.cs, so that the 
316           System.Resources namespaces can be included in the corlib build.
317
318 2002-01-05  Ravi Pratap  <ravi@ximian.com>
319
320         * ResourceManager.cs : MonoTODO attribute decoration.
321         
322 Tue Dec 18 13:18:32 CET 2001 Paolo Molaro <lupus@ximian.com>
323
324         * *.cs: fixed some of the compilation issues: missing
325         using directives, typos.
326
327 2001-12-11  Duncan Mak  <duncan@ximian.com>
328
329         * Checked in to CVS.
330
331 2001-12-10  Duncan Mak  <duncan@ximian.com>
332
333         * ResourceManager.cs (GetNeutralResourcesLanguage):
334         (GetSatelliteContractVersion): Implemented.
335         
336 2001-12-09  Duncan Mak  <duncan@ximian.com>
337
338         * ResXResourceReader.cs: Initial attempt.
339
340         * ResXFileRef.cs: Initial attempt.
341
342         * ResourceWriter.cs: Initial attempt.
343
344         * ResourceSet.cs (ReadResources): Implemented, with help from Radek Doulik.
345
346 2001-11-28  Duncan Mak <duncan@ximian.com>      
347
348         * ResourceManager.cs: First attempt.
349
350 2001-11-27  Duncan Mak <duncan@ximian.com>
351
352         * ResourceSet.cs:
353         First attempt, can't continue until ResourceReader and ResourceWriter are implemented.
354                 
355         * SatelliteContractVersionAttribute.cs: First attempt. The spec is quite amibiguous here.
356
357         * NeutralResoucesLanguageAttribute.cs: Complete.
358
359         * MissingManifestResourceException.cs: Complete.
360
361         * IResourceReader.cs: Complete.
362
363         * IResourceWriter.cs: Complete.