* 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.
svn path=/trunk/mcs/; revision=145464
2009-10-27 Sebastien Pouliot <[email protected]>
* String.cs: Remove unused (and unneeded) internal call defs.
Reduce duplication (and fix test) for Concat (object,object).
Avoid allocating zero-length strings in the cases where the
FX does not do so.
In Test/System.Text:
2009-10-27 Sebastien Pouliot <[email protected]>
* UnicodeEncodingTest.cs: Add test cases with an odd number of
bytes being used in GetString (it does not crash but it does not
work like MS FX either).
In Test/System:
2009-10-27 Sebastien Pouliot <[email protected]>
* StringTest.cs: Add test case for methods that can return
empty strings.
In System.Globalization:
2009-10-27 Sebastien Pouliot <[email protected]>
* TextInfo.cs: Avoid allocating zero-length strings in ToLower
and ToUpper methods
svn path=/trunk/mcs/; revision=144921
* CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
override for Moonlight and move all icalls together so they
can be #if-ed out.
svn path=/trunk/mcs/; revision=143648
* Calendar.cs: Do not add internal abstract methods to the
Calendar class, it prevents derived classes from existing.
svn path=/trunk/mcs/; revision=138695
* 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.
* CultureInfoTest.cs : test zh-Hant.
svn path=/trunk/mcs/; revision=134499
* CompareInfo.cs : Fixed bug #462957. With empty target string it
should always return 0.
* CompareInfoTest.cs : added test for #462957.
svn path=/trunk/mcs/; revision=122602
* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
sure the components of a read-only culture object are read-only as well.
svn path=/trunk/mcs/; revision=92326
* CultureInfo.cs: Added internal CreateCulture method, which is used
by the runtime to creating CultureInfo instances for AssemblyName.
* AssemblyNameTest.cs: Improved culture test to cover bug #347174.
* Descriptors/mscorlib.xml: Preserve all for CultureInfo to prevent
linker from removing CreateCulture method that is only used by the
runtime.
svn path=/trunk/mcs/; revision=91978
* DateTimeFormatInfo.cs: minimal implementation of
AbbreviatedMonthGenitiveNames, MonthGenitiveNames and
NativeCalendar name properties.
svn path=/trunk/mcs/; revision=85423
* HijriCalendar.cs ThaiBuddhistCalendar.cs HebrewCalendar.cs
GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs :
implemented ToFourDigitYear(), actually base implementation mostly
works as is.
* CalendarTest.cs : enabled ToFourDigitYear() test from 5 years ago.
and added some more ToFourDigitYear() tests.
svn path=/trunk/mcs/; revision=81688
* 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.
svn path=/trunk/mcs/; revision=81630
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930.
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.
svn path=/trunk/mcs/; revision=80626
2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* corlib_test.dll.sources : added DateTimeFormatInfoTest.cs.
In Test/System.Globalization:
2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* DateTimeFormatInfo.cs: Added EraName.
In System.Globalization:
2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* 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.
svn path=/trunk/mcs/; revision=78435
* 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.
* CalendarTest.cs : test for bug #81783 and AddYears() for leap year
(similar issue).
svn path=/trunk/mcs/; revision=78429
* DateTime.cs : added support for 'K'.
* DateTimeFormatInfo.cs : added roundtrip pattern (only in 2.0).
* DateTimeTest.cs : test for 'o' and 'K'.
svn path=/trunk/mcs/; revision=77579
* 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()).
* RegionInfoTest.cs : new tests.
* corlib_test.dll.sources : added RegionInfoTest.cs.
svn path=/trunk/mcs/; revision=77408