summaryrefslogtreecommitdiff
path: root/src/corefx
diff options
context:
space:
mode:
authorEric Erhardt <eric.erhardt@microsoft.com>2015-11-19 16:31:22 -0600
committerEric Erhardt <eric.erhardt@microsoft.com>2015-11-19 16:31:22 -0600
commite8b2b284462fd5bff10957ec122d3a3018e3a923 (patch)
treea0f9d5b8f643ee4cd16fba7bc75be07c99433bcb /src/corefx
parent87aa79e87856f64213b318090559006b47228713 (diff)
parentaaaa61252af283c16efd183f15a040c6ba27d5a7 (diff)
downloadcoreclr-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/corefx')
-rw-r--r--src/corefx/System.Globalization.Native/calendarData.cpp9
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) &&