diff options
author | Eric Erhardt <eric.erhardt@microsoft.com> | 2015-11-19 16:31:22 -0600 |
---|---|---|
committer | Eric Erhardt <eric.erhardt@microsoft.com> | 2015-11-19 16:31:22 -0600 |
commit | e8b2b284462fd5bff10957ec122d3a3018e3a923 (patch) | |
tree | a0f9d5b8f643ee4cd16fba7bc75be07c99433bcb /src | |
parent | 87aa79e87856f64213b318090559006b47228713 (diff) | |
parent | aaaa61252af283c16efd183f15a040c6ba27d5a7 (diff) | |
download | coreclr-e8b2b284462fd5bff10957ec122d3a3018e3a923.tar.gz coreclr-e8b2b284462fd5bff10957ec122d3a3018e3a923.tar.bz2 coreclr-e8b2b284462fd5bff10957ec122d3a3018e3a923.zip |
Merge pull request #2047 from eerhardt/ShortDate
DateTimeFormat.ShortDatePattern should use CLDR 'short' format on Unix.
Diffstat (limited to 'src')
-rw-r--r-- | src/corefx/System.Globalization.Native/calendarData.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/corefx/System.Globalization.Native/calendarData.cpp b/src/corefx/System.Globalization.Native/calendarData.cpp index c18bc9de8e..f223e6836d 100644 --- a/src/corefx/System.Globalization.Native/calendarData.cpp +++ b/src/corefx/System.Globalization.Native/calendarData.cpp @@ -556,11 +556,10 @@ extern "C" int32_t EnumCalendarInfo(EnumCalendarInfoCallback callback, { case ShortDates: // ShortDates to map kShort and kMedium in ICU, but also adding the "yMd" - // skeleton as well, as this - // closely matches what is used on Windows - return InvokeCallbackForDateTimePattern(locale, UDAT_YEAR_NUM_MONTH_DAY_UCHAR, callback, context) && - InvokeCallbackForDatePattern(locale, UDAT_SHORT, callback, context) && - InvokeCallbackForDatePattern(locale, UDAT_MEDIUM, callback, context); + // skeleton as well, as this closely matches what is used on Windows + return InvokeCallbackForDatePattern(locale, UDAT_SHORT, callback, context) && + InvokeCallbackForDatePattern(locale, UDAT_MEDIUM, callback, context) && + InvokeCallbackForDateTimePattern(locale, UDAT_YEAR_NUM_MONTH_DAY_UCHAR, callback, context); case LongDates: // LongDates map to kFull and kLong in ICU. return InvokeCallbackForDatePattern(locale, UDAT_FULL, callback, context) && |