Commit Graph
287 Commits
Author SHA1 Message Date
Marcos Henrich 468160e712 Improved CalendricalCalculations fixed_from_dmy methods. Fixes #21930.
In some cases fixed_from_dmy is used with the month parameter greater than the number of months of that year.
Year is now incremented until month parameter is valid.
2014-09-11 12:54:36 +01:00
Marek Safar 9b61bc6fcd [corlib] Add SortVersion. Fixes #18770 2014-04-07 19:22:17 +02:00
Marek Safar 200682ac78 Update CLDR to version 2.4. Fixes #17615 2014-03-07 17:56:33 +01:00
Marek Safar 802bc45cae [corlib] Fix culture name constants in CreateSpecificCultureFromNeutral to be all lower case 2014-03-07 17:56:33 +01:00
Zoltan Varga b5523227a5 Really fix the build. 2014-03-05 19:15:40 -05:00
Zoltan Varga 0bdbf3f2ba Fix the build. 2014-03-05 14:33:09 -05:00
Marek Safar 0c35602a17 [corlib] Implement CultureInfo.ClearCachedData. Fixes #18162 2014-03-05 19:45:28 +01:00
Marek Safar 9c4c295524 [corlib] Method signature fixes 2014-02-28 13:30:16 +01:00
Marek Safar 7632747636 [corlib] Simplify ambiguous chinese legacy name check 2014-02-24 21:59:10 +01:00
Enrico Sada fe489824b2 fix DateTimeFormatInfo era names
Calendar.Eras values start from 1 (1 = oldest)
As parameter of GetEraName or GetAbbreviatedEraName, era 0 mean current
era
2014-02-20 03:40:23 +01:00
Marek Safar eeeab3446f [corlib] Throw CultureNotFoundException using invariant culture. Fixes #17690 2014-02-16 18:11:46 +01:00
Marek Safar f6eb2fc9ff [corlib] Fix warnings 2014-02-14 16:25:29 +01:00
Martin Midtgaard 3c7dd7421c Implemented DaysInYearBeforeMinSupportedYear for all Calendars that should have it in .Net 4.5 2014-02-08 17:44:20 +01:00
Marek Safar 97bb0ff149 [corlib] Better conversion betwen system locale and CultureInfo. Fixes #15875 2013-12-04 16:47:08 +01:00
Marek Safar ef3f3753b8 [corlib] CreateSpecificCulture without exception retry 2013-12-04 12:18:10 +01:00
Marek Safar 0a9cbdd968 [corlib] Update CurrentRegion to work with DefaultThreadCurrentCulture 2013-12-04 10:46:51 +01:00
Marek Safar ae3f5aa141 [corlib] Consider all unicode separators in ToTitleCase. Fixes #16365 2013-11-29 20:40:07 +01:00
Rodrigo Kumpera 90e5ec63d5 [bcl]CultureInfo.DefaultThreadCurrentUICulture has now been implemented. Remove [MonoTODO] 2013-11-19 10:51:15 -05:00
Rodrigo Kumpera 349cb638ff [bcl] Implement CultureInfo.DefaultThreadCurrentUICulture. 2013-11-18 18:13:03 -05:00
Rodrigo Kumpera 5b8f9ad666 [bcl] Implement CultureInfo.DefaultThreadCurrentCulture.
The way DefaultThreadCurrentCulture is to be implemented is that its current value
will always be used by a thread that didn't set a value for its culture.

This means we can't cache DefaultThreadCurrentCulture value as it's allowed to
change and threads must always show the latest value.
2013-11-18 18:13:02 -05:00
Rodrigo Kumpera b1b2a0a8fb [bcl]Memoize the default culture so it can be reused across threads. 2013-11-18 18:13:02 -05:00
Sebastien Pouliot f2e7f36368 Use the invarient culture calendar if the requested one is not available. Partial fix for #13977 2013-08-21 14:15:39 -04:00
Sebastien Pouliot b46553c20a Avoid using reflection to initialize RegionInfo from iOS current NSLocale 2013-04-27 11:03:34 -04:00
Marek Safar 2002e45778 Add zh-CHT parent lcid handling. Fixes #11375 2013-03-26 11:07:31 +01:00
Martin Baulig 77df2f0865 Misc .NET 4.5 / PCL APIs. 2013-03-12 17:22:58 -04:00
Marek Safar ea8879d7bf Maintain only single version of ordinal string comparers 2013-03-02 22:24:26 +01:00
Marek Safar a08a39ffe6 Don't clone internally used era values 2013-03-02 18:56:31 +01:00
Marek Safar 13d9a0f334 Fix compiler warnings 2013-02-28 09:19:47 +01:00
Sebastien Pouliot 42c8d96762 Refactor to make it possible for the linker to remove, by default, less used Calendar types from applications 2013-02-27 20:11:10 -05:00
Marek Safar bb05074a9f Replace some hashtables with dictionaries 2013-02-27 22:58:32 +01:00
Marek Safar 6c06b7d204 Optmize some empty array allocations 2013-02-21 14:38:30 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Marek Safar f293d90615 Fix few warnings 2012-06-26 13:26:56 +01:00
Marek Safar 5e812e648f Fix CultureInfo::CreateSpecificCulture 2012-05-29 16:13:46 +01:00
Marek Safar 4b4308cf34 Implement DateTime::ToString format specifier for genitive month names. Fixes #4708 2012-05-15 18:34:21 +01:00
Marek Safar 9d5de96540 Update culture infos and implement missing or not implemented members 2012-05-15 09:44:22 +01:00
Marek Safar b1683b85d3 Remove some unused code 2012-02-24 13:14:08 +00:00
Sebastien Pouliot 9359f799eb For MonoTouch we fallback to NSLocale if we can't determine the current RegionInfo using CultureInfo 2012-02-17 13:24:27 -05:00
Sebastien Pouliot 04addcabdb Add warning and unit tests about RegionInfo fields ordering. Fix for #3476 2012-02-16 20:44:31 -05:00
Sebastien Pouliot 670fa9a727 Ensure match between native/managed fields representation so we retrieve the right values 2012-02-15 16:55:12 -05:00
Marek Safar 0e72f48e81 Fixes cloning of DateTimeFormatInfo, added more arguments checks. Fixes #3279 2012-02-09 10:55:58 +00:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Sebastien Pouliot 232b6428d8 More fixes for running unit tests under NET_2_1 profile 2011-09-12 10:48:12 -04:00
Atsushi Eno 8277f4a527 Fix bug #687444, null-character handling is now closer and as illogical as .NET. 2011-04-14 21:11:10 +09:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Rolf Bjarne Kvinge 3314ae8ce6 [CultureInfo]: Ensure the tests pass on .NET 4.0, and fix our CultureInfo class accordingly. 2011-03-31 12:16:59 +02:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Zoltan Varga 9899a5f249 Change some usages of ArrayList to List<T> to avoid calls to the slow ArrayList.ToArray(Type) method. 2011-01-06 13:11:56 +01:00
Marek Safar b4a5ea2985 Fixed NumberFormatInfo.InvariantInfo currency symbol 2010-12-22 12:48:55 +00:00