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