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