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