From 1691abe75e399202fb4c3c4f5e0b0bb372b2a05a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 9 Apr 2010 21:20:21 +0000 Subject: [PATCH] * nlsfuncs.cc (__set_lc_time_from_win): Actually set _time_locale->md_order to the D_MD_ORDER value written to the buffer. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/nlsfuncs.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 96035a122..81e184543 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-04-09 Corinna Vinschen + + * nlsfuncs.cc (__set_lc_time_from_win): Actually set + _time_locale->md_order to the D_MD_ORDER value written to the buffer. + 2010-04-09 Christopher Faylor * path.cc (path_conv::set_normalized_path): Use crealloc_abort to avoid diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index 498b36008..dc0947c46 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -607,6 +607,7 @@ __set_lc_time_from_win (const char *name, struct lc_time_T *_time_locale, { wchar_t buf[80]; GetLocaleInfoW (lcid, LOCALE_IDATE, buf, 80); + _time_locale->md_order = (const char *) lc_time_ptr; lc_time_ptr = stpcpy (lc_time_ptr, *buf == L'1' ? "dm" : "md") + 1; } /* ampm_fmt */