Fixing date patterns on Linux.
authorEric Erhardt <eerhardt@microsoft.com>
Fri, 11 Sep 2015 21:02:46 +0000 (16:02 -0500)
committerMatt Ellis <matell@microsoft.com>
Tue, 22 Sep 2015 18:50:39 +0000 (11:50 -0700)
commit0a67eb7f76a77b2a3903542ca9c023201b45942f
tree4e5749e83451d49a2407b00e64f456ac871a5d3b
parentfc7b3b24cb7686d2f6db18fad380deec8b311d90
Fixing date patterns on Linux.

1. Getting more LongDatePatterns by getting both full and long ICU patterns.
2. Getting more ShortDatePatterns by getting both medium and short ICU patterns.  Still keeping the "yMd" pattern, since this closely matches what is used on Windows.
3. Removing any duplicates in the date patterns.
4. "Normalizing" the date patterns from ICU format to .NET format.
  a. "EEEE", "eeee" and "cccc" is replaced with "dddd"
  b. "LLLL" is replaced with "MMMM"
  c. "G" is replaced with "g"
  d. A single 'y' is replaced with 'yyyy'

Commit migrated from https://github.com/dotnet/coreclr/commit/9dc6f27b77af7bf4272f63d9af2ec5b5ca2ec43a
src/coreclr/src/corefx/System.Globalization.Native/calendarData.cpp
src/coreclr/src/mscorlib/corefx/System/Globalization/CalendarData.Unix.cs