[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / corlib / System.Globalization / ChangeLog
index 92b7624e0ee362578f3567c754a84a8feaa1d245..88339fab9ee8308743a6ed88210a6e20a503e447 100644 (file)
@@ -1,3 +1,392 @@
+2010-06-21  Jb Evain  <jbevain@novell.com>
+
+       * CharUnicodeInfo.cs: make static.
+
+2010-06-21  Jb Evain  <jbevain@novell.com>
+
+       * CultureNotFoundException.cs: add it to Moonlight.
+
+2010-06-21  Jb Evain  <jbevain@novell.com>
+
+       * TimeSpanStyles.cs: add to Moonlight.
+
+2010-04-19  Zoltan Varga  <vargaz@gmail.com>
+
+       * CompareInfo.cs (IndexOf): Return startIndex instead of 0 for empty strings.
+       Fixes #597604.
+
+2010-03-16  Jb Evain  <jbevain@novell.com>
+
+       * CultureInfo.cs, CompareInfo.cs, Calendar.cs: use MOONLIGHT symbol
+       to disambiguate MonoTouch and Moonlight code.
+
+2010-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * CultureNotFoundException.cs: new 4.0 type.
+       * CultureTypes.cs: add [Obsolete] for 2 values.
+       * TimeSpanStyles.cs: new 4.0 enum.
+
+2009-12-09  Jb Evain  <jbevain@novell.com>
+
+       * StringInfo.cs: default constructor falls back to an empty string info.
+
+2009-11-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * CultureInfo.cs: Allow neutral cultures, and fix zh-Hans/zh-Hant
+       - they're stored internally as zh-chs/zh-cht, and only visible as
+       zh-Hans/zh-Hant. zh-CHS/zh-CHS are invalid cultures in SL.
+
+2009-10-29  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CompareInfo.cs: Add/fix CompareOptions validations. Reduce code
+       duplication in Compare methods (wrt CompareOptions). Fix 
+       calculation bug in Compare(string,int.string,int,CompareOptions).
+
+2009-10-27  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * TextInfo.cs: Avoid allocating zero-length strings in ToLower 
+       and ToUpper methods
+
+2009-10-14  Jonathan Pryor  <jpryor@novell.com>
+
+       * CultureInfo.cs: Re-add GetCultures() to the MonoTouch profile.
+
+2009-10-14  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CultureInfo.cs: Refactor to reduce unsafe methods/scope.
+
+2009-10-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
+       override for Moonlight and move all icalls together so they
+       can be #if-ed out.
+
+2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Calendar.cs: Don't expose AlgorithmType property in NET_2_1
+       * CultureInfo.cs: Don't expose CultureTypes in NET_2_1
+       * NumberFormatInfo.cs: Don't expose NativeDigits in NET_2_1
+       * GregorianCalendar.cs, HebrewCalendar.cs, HijriCalendar.cs,
+       JapaneseCalendar.cs, KoreanCalendar.cs, TaiwanCalendar.cs,
+       ThaiBuddhistCalendar.cs, UmAlQuraCalendar.cs: Don't expose 
+       AlgorithmType property in NET_2_1
+
+2009-07-26  Miguel de Icaza  <miguel@novell.com>
+
+       * Calendar.cs: Do not add internal abstract methods to the
+       Calendar class, it prevents derived classes from existing. 
+
+2009-05-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CultureInfo.cs : it seems that zh-Hant and zh-Hans are introduced
+         as almost alias  of zh-CHS/zh-CHT in vista and some new windows.
+         Add hacky support for them.
+
+2009-01-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CompareInfo.cs : Fixed bug #462957. With empty target string it
+         should always return 0.
+
+2008-08-14  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CultureInfo.cs : applied patch by Robert Jordan,
+         fixed bug #402128. Create uninitialized parent culture
+         when required.
+
+2008-07-28  Marek Safar <marek.safar@gmail.com>
+
+       * GregorianCalendar.cs: Delay DateTime .cctor invocation.
+
+2008-07-03  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * TextInfo.cs: Fix exceptions
+       * StringInfo.cs
+       * SortKey.cs:
+       * RegionInfo.cs:
+       * NumberFormatInfo.cs:
+       * CultureInfo.cs:
+       * CompareInfo.cs:
+       * CharUnicodeInfo.cs: Fix parameter names
+
+2008-07-03  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * UmAlQuraCalendar.cs:
+       * ThaiBuddhistCalendar.cs
+       * TaiwanCalendar.cs:
+       * PersianCalendar.cs:
+       * KoreanCalendar.cs:
+       * JulianCalendar.cs:
+       * JapaneseCalendar.cs:
+       * HijriCalendar.cs:
+       * HebrewCalendar.cs:
+       * GregorianCalendar.cs:
+       * EastAsianLunisolarCalendar.cs:
+       * Calendar.cs: Fix parameter names
+
+2008-06-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * CompareInfo.cs: Add a cache of SimpleCollator objects.
+
+2008-01-13  Eyal Alaluf <eyala@mainsoft.com>
+
+       * NumberFormatInfo.cs: Defined internal "Raw" APIs that do not clone the
+         internal array members in order to improve performance of custom ToString.
+
+2008-01-06  Zoltan Varga  <vargaz@gmail.com>
+
+       * CultureInfo.cs: Add a 'cached_serialized_form' field.
+       
+       * CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
+       sure the components of a read-only culture object are read-only as well.
+
+2007-12-28  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * CultureInfo.cs: Added internal CreateCulture method, which is used
+       by the runtime to creating CultureInfo instances for AssemblyName.
+
+2007-11-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * NumberFormatInfo.cs :
+         NativeDigits and DigitSubstitution are [ComVisible(false)].
+
+2007-09-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTimeFormatInfo.cs : implemented SetAllDateTimePatterns().
+
+2007-09-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * NumberFormatInfo.cs : added NativeDigits and DigitSubstitution.
+
+2007-09-06  Marek Habersack  <mhabersack@novell.com>
+
+       * DateTimeFormatInfo.cs: minimal implementation of
+       AbbreviatedMonthGenitiveNames, MonthGenitiveNames and
+       NativeCalendar name properties.
+
+2007-08-24  Zoltan Varga  <vargaz@gmail.com>
+
+       * CalendricalCalculations.cs: Fix a warning.
+
+2007-07-17  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CalendricalCalculations.cs, JulianCalendar.cs :
+         true fix for bug #81783. GetMonths() should consider month part
+         going beyond 12.
+
+2007-07-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * StringInfo.cs : implemented 2.0 members.
+
+2007-07-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UmAlQuraCalendar.cs : forgot to implement it.
+
+2007-07-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HijriCalendar.cs ThaiBuddhistCalendar.cs HebrewCalendar.cs
+         GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs :
+         implemented ToFourDigitYear(), actually base implementation mostly
+         works as is.
+
+2007-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CultureInfo.cs : 1.x build fix.
+
+2007-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CultureInfo.cs : implemented GetConsoleFallbackUICulture and
+         CultureTypes (it is awful indeed). Fix ComVisibles.
+         implemented InstalledUICulture, as what matches the best I think is
+         the one for BootstrapCultureID.
+
+2007-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CultureInfo.cs : another hack, KeyboardLayoutId.
+
+2007-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CultureInfo.cs :
+         hacked IetfLanguageTag and GetCultureInfoByIetfLanguageTag().
+
+2007-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CompareInfo.cs : Name.
+       * PersianCalendar.cs : missing members.
+       * NumberFormatInfo.cs HijriCalendar.cs CultureInfo.cs TextInfo.cs
+         HebrewCalendar.cs ThaiBuddhistCalendar.cs GregorianCalendar.cs
+         KoreanCalendar.cs JulianCalendar.cs TaiwanCalendar.cs
+         JapaneseCalendar.cs DaylightTime.cs EastAsianLunisolarCalendar.cs
+         RegionInfo.cs TextElementEnumerator.cs : ComVisible cleanup.
+
+2007-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * TextInfo.cs : ICloneable.
+       * GregorianCalendarTypes.cs CompareOptions.cs CultureTypes.cs
+         CalendarWeekRule.cs UnicodeCategory.cs : [Serializable].
+       * ThaiBuddhistCalendar.cs GregorianCalendar.cs KoreanCalendar.cs
+         TaiwanCalendar.cs JapaneseCalendar.cs :
+         GetWeekOfYear() (base could be simply used). Removed unused code.
+
+2007-07-02  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UmAlQuraCalendar.cs
+         EastAsianLunisolarCalendar.cs
+         ChineseLunisolarCalendar.cs
+         TaiwanLunisolarCalendar.cs
+         JapaneseLunisolarCalendar.cs
+         KoreanLunisolarCalendar.cs : new 2.0 calendars.
+       * Calendar.cs
+         HijriCalendar.cs HebrewCalendar.cs ThaiBuddhistCalendar.cs
+         GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs
+         TaiwanCalendar.cs JapaneseCalendar.cs PersianCalendar.cs :
+         added GetLeapMonth().
+       * CalendricalCalculations.cs : added some lunisolar calendar stuff.
+         mostly stubs.
+
+2007-06-24  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * CultureInfo.cs: Added new private ctors that takes value for 
+       read-only bit as argument. In ContructInvariant, clone invariant 
+       NumberFormatInfo and DateTimeFormatInfo when we're not creating a
+       read-only CultureInfo, since they also should not be read-only.
+       Changes are required to allow a writable invariant CultureInfo to be
+       constructed. In GetCultures, use clone of InvariantCulture since it 
+       must be not be read-only. In GetCultureInfo, always construct
+       read-only CultureInfo's. Fixes part of bug #81930.
+
+2007-06-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Calendar.cs DateTimeFormatInfo.cs : 2.0 API fixes.
+       * CalendricalCalculations.cs : fixed AddMonth() and AddYears() to
+         consider that the max days in the target month (for AddYears()
+         leap year month could matter). Fixed bug #81783.
+
+2007-05-31  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * GregorianCalendar.cs: Change era names from C.E./Common Era 
+       to AD/A.D.
+       * DateTimeFormatInfo.cs: GetEra: search the abbreviated era names
+       as well for the era, and return the era, not the index of the era 
+       in the array.
+
+2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * IdnMapping.cs : new 2.0 class.
+
+2007-05-17  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTimeFormatInfo.cs : added roundtrip pattern (only in 2.0).
+
+2007-05-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * RegionInfo.cs, CultureInfo.cs : in 2.0 RegionInfo could be created
+         from locale name. To support that, retrieve CultureInfo from name
+         and use its Territory name if exists.
+         RegionInfo.Equals() still uses lcid, but hash code is based on
+         region ID. Added GeoId, which represents unique region ID (which
+         is returned in 1.x GetHashCode()).
+
+2007-04-17  Alp Toker  <alp@atoker.com>
+
+       * DateTimeFormatInfo.cs: Provide set accessor for MonthNames.
+
+2007-04-16  Marek Safar  <marek.safar@gmail.com>
+
+       * PersianCalendar: Removed twoDigitYearMax field.
+
+2007-03-25  Marek Safar  <marek.safar@gmail.com>
+
+       * GregorianCalendar.cs, HebrewCalendar.cs, JapaneseCalendar.cs,
+       HijriCalendar.cs, JapaneseCalendar.cs, JulianCalendar.cs,
+       KoreanCalendar.cs, TaiwanCalendar.cs, ThaiBuddhistCalendar.cs:
+       Removed twoDigitYearMax field.
+
+2007-01-25  Chris Toshok  <toshok@ximian.com>
+
+       * Calendar.cs, HijriCalendar.cs, ThaiBuddhistCalendar.cs,
+       HebrewCalendar.cs, GregorianCalendar.cs, KoreanCalendar.cs,
+       JulianCalendar.cs, PersianCalendar.cs:
+
+       more serialization fixes.  the M_TwoDigitYearMax field we use
+       appears to be called twoDigitYearMax in MS.NET.  rename it (and
+       fix all the Calendar subclasses to use this naming).  Likewise
+       with is_readonly (MS calls it m_isReadOnly).
+
+       Also, the m_currentEraValue field I had originally placed in
+       GregorianCalendar appears to be in Calendar (as running
+       nunit-2.2.8-2.0 shows.)
+
+       In GregorianCalendar, rename the M_CalendarType field to m_type
+       and remove the extra field I added.
+       
+       The previous fix got nunit 2.4-2.0 running.  This change gets
+       versions 2.2.8 and 2.4 of nunit running against both 1.1 and 2.0
+       profiles.
+
+2006-01-24  Chris Toshok  <toshok@ximian.com>
+
+       [ these fix nunit built with MS .net 2.0, running on mono.  nunit
+       apparently stores all manner of things in its resources ]
+       
+       * NumberFormatInfo.cs: add unused nativeDigits and
+       digitSubstitution fields that MS serializes.
+
+       * DateTimeFormatInfo.cs: serialization fixes.  MS apparently
+       stores (and serializes) a couple of fields as ints, but exposes
+       them to programmers as Enum's.
+       
+       * CompareInfo.cs: add unused m_name field that MS serializes.
+
+       * GregorianCalendar.cs: add a couple of unused fields that MS serializes.
+
+2007-01-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CompareInfo.cs : there was a test which raises assertion failure
+         if there isn't paramName for ArgumentException. Quite odd one.
+
+2007-01-12  Miguel de Icaza  <miguel@novell.com>
+
+       * DateTimeFormatInfo.cs: Add support for shortest day names.
+       Notice that there is no support in the runtime to actually load
+       this information from any place.   So they are all english values.
+
+2007-01-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CompareInfo.cs : GetSortKey() does not allow Ordinal and 
+         OrdinalIgnoreCase in 2.0 (shuold be also prohibited in 1.x BTW).
+
+2006-12-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CompareInfo.cs : for OrdinalIgnoreCase, IndexOf() and LastIndexOf()
+         will use managed version (icalls for them are case sensitive).
+         Removed MonoTODOs.
+
+2006-12-17  Igor Zelmanovich <igorz@mainsoft.com>
+
+       * DateTimeFormatInfo.cs : added missing properties and methods.
+
+2006-12-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTimeFormatInfo.cs : added some internal clone-less versions of
+         string[] properties and methods.
+
+2006-11-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CompareInfo.cs : fixed wrong || with && for OrdinalIgnoreCase.
+         Fixed bug #80056.
+
+2006-11-10  Marek Safar  <marek.safar@gmail.com>
+
+       * CultureInfo.cs (TextInfo): Construct a culture when is
+       uninitialized. An issue exposed by previous change.
+
+2006-11-09  Marek Safar  <marek.safar@gmail.com>
+
+       * CompareInfo.cs: Cache full UseManagedCollation value;
+       * CultureInfo.cs (Parent): Add caching to avoid re-creating culture info
+         every time when the property is used.
+       * TextInfo.cs: Removed unused field.
+
 2006-08-19  Miguel de Icaza  <miguel@novell.com>
 
        * CultureInfo.cs (GetCultureInfo): implement two of the 2.0