Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-04-10 01:20:21 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-04-10 01:20:21 +0400
commit1691abe75e399202fb4c3c4f5e0b0bb372b2a05a (patch)
tree9244dd494d605c019cb0740f85f5cb9b60a17b63 /winsup/cygwin/nlsfuncs.cc
parent412f3e61d4a3e5eca549f87babaa6ebe4c0cace5 (diff)
* nlsfuncs.cc (__set_lc_time_from_win): Actually set
_time_locale->md_order to the D_MD_ORDER value written to the buffer.
Diffstat (limited to 'winsup/cygwin/nlsfuncs.cc')
-rw-r--r--winsup/cygwin/nlsfuncs.cc1
1 files changed, 1 insertions, 0 deletions
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 */