error messages review
[mono.git] / mcs / class / corlib / System.Globalization / ChangeLog
1 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * NumberFormatInfo.cs: undo workaround for bug 55978 as it's not needed
4         any more. This fixed bug #75396.
5
6 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7
8         * CultureInfo.cs: added internal method to check for a culture
9         valid for formatting. Correctly get the calendar type.  Before
10         it was always type 0. Thanks to Mcs for pointing this out.
11
12 2005-05-06  Miguel de Icaza  <miguel@novell.com>
13
14         * CultureInfo.cs: Eliminate double-check lock always init the invariant_culture_info.
15
16 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17
18         * CultureInfo.cs: made a few variables 'volatile'. GetCultures now
19         returns the InvariantCulture in the array. Fixes bug #72081.
20
21 2005-04-27  Atsushi Enomoto  <atsushi@ximian.com>
22
23         * TextInfo.cs : Some performance fixes. Avoid delegate.
24           Compute parent culture only once. Quick ASCII range check.
25
26 2005-04-17  Atsushi Enomoto  <atsushi@ximian.com>
27
28         * TextInfo.cs : extremely strict null check (which should not happen).
29
30 2005-04-17  Atsushi Enomoto  <atsushi@ximian.com>
31
32         * TextInfo.cs : Additional null check for Parent CultureInfo.
33
34 2005-04-06  Atsushi Enomoto  <atsushi@ximian.com>
35
36         * TextInfo.cs : To make new CultureInfo (127) as invariant, it should
37           not compare object Equals() against InvariantCulture.
38
39 2005-04-05  Atsushi Enomoto  <atsushi@ximian.com>
40
41         * TextInfo.cs : Fixed ToTitleCase() so that
42           - handle some titlecase characters in Latin ang Greek.
43           - it keeps "all title case" word as is ("ABC" does not become "Abc").
44           - it can handle such string like "1ABc".
45
46 2005-04-04  Atsushi Enomoto  <atsushi@ximian.com>
47
48         * TextInfo.cs : implemented culture sensitive ToLower() and ToUpper()
49           which behaves exactly the same as MS.NET does.
50
51 2005-02-09  Lluis Sanchez Gual  <lluis@ximian.com>
52
53         * CultureInfo.cs: Added field needed for serialization
54         interoperability with MS.NET. Also fixed default value for
55         the constructor.
56
57 2005-01-31  Atsushi Enomoto  <atsushi@ximian.com>
58
59         * NumberFormatInfo.cs : allow zero length sizes. patch by Kazuki
60           Oikawa.
61
62 2005-01-20  Jackson Harper  <jackson@ximian.com>
63
64         * HebrewCalendar.cs: Patch by Juan C. Olivares
65         (juancri@tagnet.org) to implement 4 digit years and set the
66         min year correctly.
67
68 2005-01-17  Atsushi Enomoto  <atsushi@ximian.com>
69
70         * CharUnicodeInfo.cs : added new in 2.0 (kinda hacky).
71
72 2005-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
73
74         * CultureInfo.cs: the InvariantCulture returns false for
75         IsNeutralCulture. Fixes bug #59716.
76
77 2004-12-13  Ben Maurer  <bmaurer@ximian.com>
78
79         * CultureInfo.cs: Store TextInfo data. Hand it over to TextInfo.
80         * TextInfo.cs: Rewrote props to use the textinfo data stored in
81         unmanaged code.
82
83 2004-11-04  Zoltan Varga  <vargaz@freemail.hu>
84
85         * CultureInfo.cs (Clone): Make the components of the culture read-write
86         as well.
87
88 2004-10-14  Miguel de Icaza  <miguel@ximian.com>
89
90         * TextInfo.cs (ToString) Fix the return value for ToString.
91
92         (Add a new parameter: the CultureInfo, since we implemented things
93         in terms of the CultureInfo in our runtime, and not the
94         TextInfo). 
95
96         (ToTitleCase): Fix to do title case for each word on the string
97         per the spec.
98
99 Wed Jun 30 17:06:43 CEST 2004 Paolo Molaro <lupus@ximian.com>
100
101         * NumberFormatInfo.cs: workaround for bug 55978.
102
103 2004-06-17  Atsushi Enomoto  <atsushi@ximian.com>
104
105         * DateTimeFormatInfo.cs : check if pattern array is empty or not. Now
106           icall fills them as possible empty list.
107
108 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
109
110         * DateTimeFormatInfo.cs: added TODO for serialization
111         * GregorianCalendar.cs:: added TODO for serialization
112         * HebrewCalendar.cs: added TODO for serialization
113         * HijriCalendar.cs: added TODO for serialization
114         * JapaneseCalendar.cs: added TODO for serialization
115         * JulianCalendar.cs: added TODO for serialization
116         * KoreanCalendar.cs: added TODO for serialization
117         * TaiwanCalendar.cs: added TODO for serialization
118         * ThaiBuddhistCalendar.cs: added TODO for serialization
119
120 2004-06-08  Dick Porter  <dick@ximian.com>
121
122         * CultureInfo.cs: Make calendar_data readonly, to match the
123         const-ness in the runtime.
124
125 2004-05-28  Atsushi Enomoto  <atsushi@ximian.com>
126
127         * DateTimeFormatInfo.cs : In fact GetAllDateTimePatterns() returns
128           non-unique results.  Just reordered return values looking at MS
129           invariant behavior.
130
131 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
132
133         * DateTimeFormatInfo.cs : 'U' is in fact the same as 'F' for pattern
134           strings. Thanks to kangaroo for the hint.
135
136 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
137
138         * DateTimeFormatInfo.cs : Fixed longtimes and shorttimes (exchanged).
139
140 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
141
142         * DateTimeFormatInfo.cs : Added some string[] fields for
143           GetAllDateTimePatterns(char). The fields will be filled in metadata
144           and culture info table. Added improved patterns for 
145           GetAllDateTimePatterns() (right now works only for invariant).
146         * CultureInfo.cs : Use InvariantInfo for InvariantCulture.
147
148 2004-05-26  Atsushi Enomoto  <atsushi@ximian.com>
149
150         * DateTimeFormatInfo.cs :
151           hack implementation for GetAllDateTimePatterns().
152
153 2004-05-17  Jackson Harper  <jackson@ximian.com>
154
155         * CultureInfo.cs: Invariant culture has the invariant culture as
156         its parent....<insert joke about the south>. It is readonly so we
157         can return this.
158         
159 2004-05-17  Jackson Harper  <jackson@ximian.com>
160
161         * CultureInfo.cs: Properify error messages when invalid lcid's are
162         used.
163
164 2004-05-15  Jackson Harper  <jackson@ximian.com>
165
166         * CultureInfo.cs: Initialize optional calendars. A pointer to an
167         array of ints is passed back from the runtime to the CultureInfo
168         object. The ints store the calendar type and any optional data
169         needed to construct the calendar.
170         
171 2004-05-14  Dick Porter  <dick@ximian.com>
172
173         * HebrewCalendar.cs: Stubbed ToFourDigitYear()
174
175         * HijriCalendar.cs: Stubbed HijriAdjustment
176
177 2004-05-13  Jackson Harper  <jackson@ximian.com>
178
179         * CultureInfo.cs: You can access DateTimeFormat and NumberFormat
180         from the invariant culture.
181         
182 2004-05-13  Jackson Harper  <jackson@ximian.com>
183
184         * CultureInfo.cs: DateTimeFormat and NumberFormat can not be
185         accessed for neutral cultures.
186         
187 2004-04-30  Dick Porter  <dick@ximian.com>
188
189         * StringInfo.cs: 
190         * TextElementEnumerator.cs: Implemented
191
192 2004-04-27  Jackson Harper <jackson@ximian.com>
193
194         * CultureInfo.cs: Make specific names lower case, because all data
195         in the culture info tables is lowercase.
196         
197 2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
198
199         * CultureInfo.cs: Call invariant String.ToLower
200         * RegionInfo.cs: Call invariant String.ToUpper
201
202 2004-04-11  Atsushi Enomoto  <atsushi@ximian.com>
203
204         * NumberFormatInfo.cs : All GetXXXGroupSizes() should not return
205           internal array. Return clone as MS.NET does.
206
207           There still looks somewhere breaking CurrentInfo.
208
209 2004-04-08  Lluis Sanchez Gual  <lluis@ximian.com>
210
211         * CompareInfo.cs, CultureInfo.cs, NumberFormatInfo.cs, TextInfo.cs:
212         Made those serializable-compatible with MS.NET: modified fields names to 
213         match MS.NET ones, and in CultureInfo added a flag to control when a
214         deserialized instance need to be initialized.
215
216 2004-04-07  Jackson Harper  <jackson@ximian.com>
217
218         * CultureInfo.cs: Use new ICUless implementation in the runtime.
219         * CompareInfo.cs: Get ICU name from a cultureinfo object instead
220         of looking it up in the culture map.
221         * RegionInfo.cs: Dont check if the LCID is neutral unless its not
222         found in the switch. Avoids an icall.
223         
224 2004-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
225
226         * NumberFormatInfo.cs: this fixes bug #56000 for me. And it doesn't
227         break anything as NumberFormatInfo is sealed.
228
229 2004-02-14  Atsushi Enomoto  <atsushi@ximian.com>
230
231         * NumberFormatInfo.cs : CurrentInfo should not return clone every 
232           time (MS.NET returns the same object; try object.ReferenceEquals()).
233
234 2004-02-08 David Sheldon <dave-mono@earth.li>
235
236         * NumberFormatInfo.cs: When parsing the percentages, put the data 
237           into PercentDecimalDigits/PercentGroupLengths, rather than trashing
238           the NumberDecimatDigits etc. This also means that the percent format
239           info gets set.
240
241 2004-01-27  David Sheldon <dave-mono@earth.li>
242
243         * NumberFormatInfo.cs: InitPatterns: it seems that the patterns in 
244           ICU use digitPattern, not zeroPattern for the spaces after the 
245           decimal point. 
246
247 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
248
249         * CultureInfo.cs: Parent returns null when lcid == parent_lcid. Fixes
250         bug #52102.
251
252 2003-12-20 Ben Maurer  <bmaurer@users.sourceforge.net>
253
254         * CompareInfo.cs: Replace blah == "" with blah.Length == 0.
255         MUCH faster. Note, we dont need to check for nulls, because
256         the properties were used in other places.
257
258 2003-12-19  Dick Porter  <dick@ximian.com>
259
260         * CompareInfo.cs: Added assorted shortcuts when comparing empty
261         strings.  Fixed offset and length range checks to flag when <0.
262         Broke test that offset >= string length to match actual ms
263         behaviour (sigh.)  Fixes bug 52310.
264
265 2003-12-06  Dick Porter  <dick@ximian.com>
266
267         * CompareInfo.cs: Don't build strings in Compare, IndexOf and
268         LastIndexOf methods.  Avoid the icall in IndexOf and LastIndexOf
269         if the search parameter is a char and the CompareOptions include
270         Ordinal.
271
272 2003-12-04  Dick Porter  <dick@ximian.com>
273
274         * CompareInfo.cs: Implement the deserialization callback
275
276         * CultureInfo.cs: Allow CompareInfo to see the CultureMap so that
277         it can construct the ICU collator itself
278
279 2003-12-02  Dick Porter  <dick@ximian.com>
280
281         * NumberFormatInfo.cs: Helper called by runtime locale
282         construction from ICU.  Patch by Mohammad DAMT (mdamt@cdl2000.com).
283
284 2003-12-01  Dick Porter  <dick@ximian.com>
285
286         * CultureInfo.cs: Culture name creation is case-insensitive.
287         Implemented CurrentCulture and CurrentUICulture.
288
289         * CompareInfo.cs: Fix IndexOf and LastIndexOf so that they work
290         for combining characters.
291
292 2003-11-05  Pedro Martínez Juliá  <yoros@wanadoo.es>
293
294         * DateTimeFormatInfo.cs: Hack an era for US culture. We must look
295         for other ways to get the ERA string.
296
297 2003-10-21  Dick Porter  <dick@ximian.com>
298
299         * TextInfo.cs: 
300         * CultureInfo.cs: Implement TextInfo.GetHashCode().  Fixes bug
301         49923.
302
303 2003-10-09  Dick Porter  <dick@ximian.com>
304
305         * CultureInfo.cs: Implemented, with internal calls to ICU apart
306         from the Invariant culture.
307         
308         * SortKey.cs:
309         * CompareInfo.cs: Implemented
310
311         * DateTimeFormatInfo.cs: Fixed the worst of the formatting,
312         construct default FullDateTimePattern on the fly.
313
314 2003-08-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
315
316         * Locale.cs: Removed (added new version to Assembly directory)
317
318 2003-07-23  Duncan Mak  <duncan@ximian.com>
319
320         * DateTimeFormatInfo.cs: theInvariantDateTimeFormatInfo should not
321         be public.
322
323 2003-05-11  Ben Maurer  <bmaurer@users.sourceforge.net>
324
325         * *Calendar.cs: Implemented the TwoDigitYearMax property.
326         
327 2003-04-22  Pedro Martínez Juliá  <yoros@wanadoo.es>
328
329         * NumberFormatInfo.cs: Method CurrentInfo now returns the "real"
330         CurrentInfo (Thread.CurrentThread.CurrentCulture.NumberFormat).
331
332 2003-02-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
333
334         * CultureInfo.cs:
335         (NameToID): make it case insensitive and use a hashtable instead of
336         comparing all the strings.
337
338 Mon Nov 18 13:02:09 CET 2002 Paolo Molaro <lupus@ximian.com>
339
340         * CultureInfo.cs: implemented Equals and GetHashCode.
341
342 2002-10-17  Duncan Mak  <duncan@ximian.com>
343
344         * CultureInfo.cs (TextInfo): return a TextInfo in the property.
345
346         * TextInfo.cs (ToLower):
347         (ToTitleCase): Implemented.
348
349 2002-09-12  Dick Porter  <dick@ximian.com>
350
351         * ThaiBuddhistCalendar.cs: 
352         * TextInfo.cs: 
353         * TaiwanCalendar.cs: 
354         * RegionInfo.cs: 
355         * KoreanCalendar.cs: 
356         * JulianCalendar.cs: 
357         * JapaneseCalendar.cs: 
358         * HijriCalendar.cs: 
359         * HebrewCalendar.cs: 
360         * GregorianCalendar.cs: 
361         * CultureInfo.cs: 
362         * CompareInfo.cs: Stub out missing methods
363
364 2002-08-15  Tim Coleamn <tim@timcoleman.com>
365         * CompareInfo.cs:
366                 Stubbed out some methods.
367
368 2002-08-14  Dick Porter  <dick@ximian.com>
369
370         * CultureInfo.cs: Implement Name, stub out all the other missing
371         methods.
372
373         * TextInfo.cs: Stubbed out this class
374
375 2002-06-12  Nick Drochak  <ndrochak@gol.com>
376
377         * DateTimeFormatInfo.cs: Reformat.
378
379 2002-06-11  Nick Drochak  <ndrochak@gol.com>
380
381         * NumberFormatInfo.cs: Make NumberNegativePattern = 1 for the ctor
382
383 2002-06-07  Nick Drochak  <ndrochak@gol.com>
384
385         * NumberFormatInfo.cs: Make InvariantInfo.NumberNegativePattern = 1
386
387 2002-05-07  Rodrigo Moya <rodrigo@ximian.com>
388
389         * CompareInfo.cs: new basic stub (compiles on Linux, so I assume
390         it does not break the build on windows. Sorry if it does).
391
392 2002-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
393
394         * NumberFormatInfo.cs: always set the values for the invariant culture
395         until there are more cultures supported.
396
397 2002-04-22  Nick Drochak  <ndrochak@gol.com>
398
399         * NumberStyles.cs: Add [Serializable].
400
401 2002-04-08  Nick Drochak  <ndrochak@gol.com>
402
403         * UnicodeCategory.cs: Fix typos in enum names.
404
405 2002-03-04  Nick Drochak  <ndrochak@gol.com>
406
407         * JulianCalendar.cs: JulianEra should be field, not a property.
408         Thanks CorCompare (and Piers).
409
410 2002-02-12  Duncan Mak  <duncan@ximian.com>
411
412         * CultureInfo.cs: Added the Calendar property to make the TimeZone
413         class build. It's marked as MonoTODO.
414
415 2002-02-12  Nick Drochak  <ndrochak@gol.com>
416
417         * UnicodeCategory.cs: Fix typo.
418
419 2002-02-01  Radek Doulik  <rodo@ximian.com>
420
421         * RegionInfo.cs: started work on RegionInfo
422         implemented RegionInfo (string) constructor
423
424         * CultureInfo.cs: added internal static function,
425         which could be used from RegionInfo.cs
426
427 2002-01-16  Miguel de Icaza  <miguel@ximian.com>
428
429         * CultureInfo.cs: Completed the tables.   Now we need to actually
430         fill it in.
431
432 2002-01-15  Duncan Mak  <duncan@ximian.com>
433
434         * CultureInfo.cs: Convert it to unix text.
435
436 2002-01-04  Ravi Pratap  <ravi@ximian.com>
437
438         * GreogrianCalendar.cs : The same old MonoTODO attribute.
439
440 2001-11-21  Miguel de Icaza  <miguel@ximian.com>
441
442         * Locale.cs: New file, a place holder for Locale.GetText.
443
444 Wed Nov 14 16:47:07 CET 2001 Paolo Molaro <lupus@ximian.com>
445
446         * Calendar.cs: CLSCompliant updates.
447
448 2001-11-04  Martin Weindel <martin.weindel@t-online.de>
449         * NumberFormatInfo.cs: fixed minor bug in Clone with readonly flag
450
451         * DateTimeFormatInfo.cs: added
452
453         * CultureInfo.cs: some changed needed for compiling DateTimeFormatInfo.cs
454
455 2001-10-26  Miguel de Icaza  <miguel@ximian.com>
456
457         * NumberFormatInfo.cs: Provide an internal constructor that takes
458         as an argument a CultureInfo ID (LCID) so that we can construct
459         different ones here.
460
461         * CultureInfo.cs: Begun implementation.
462
463 2001-10-09  Derek Holden  <dholden@draper.com>
464
465         * NumberFormatInfo.cs: Small typo in PercentPositivePattern
466         and CurrencyPositivePattern
467
468 2001-09-02  Miguel de Icaza  <miguel@ximian.com>
469
470         * Calendar.cs: Implement a bunch of missing features.
471
472 2001-07-24  Derek Holden  <dholden@draper.com>
473
474         * NumberStyles.cs: Added ECMA values for Allow types and default
475         styles.
476
477 2001-07-18  Michael Lambert <michaellambert@email.com>
478
479         * DateTimeStyles.cs, NumberStyles.cs: Add.
480