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