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-02-22 13:53:04 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-02-22 13:53:04 +0300
commit6eaf061dc4103c71fa289e80076649519e36601d (patch)
tree43e74956c6b664be7a79be53b0bf1739b85a2bd9 /newlib/libc/locale/nl_langinfo.c
parent5d76584680963d0b4808850eed6205d9df50c39b (diff)
* libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item
value for LC_TIME entry date_fmt. (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT. * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
Diffstat (limited to 'newlib/libc/locale/nl_langinfo.c')
-rw-r--r--newlib/libc/locale/nl_langinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/locale/nl_langinfo.c b/newlib/libc/locale/nl_langinfo.c
index 2f47c8735..14cd07a5e 100644
--- a/newlib/libc/locale/nl_langinfo.c
+++ b/newlib/libc/locale/nl_langinfo.c
@@ -189,6 +189,9 @@ _DEFUN(nl_langinfo, (item),
case ALT_DIGITS:
ret = (char*) __get_current_time_locale()->alt_digits;
break;
+ case _DATE_FMT: /* GNU extension */
+ ret = (char*) __get_current_time_locale()->date_fmt;
+ break;
case RADIXCHAR:
ret = (char*) __get_current_numeric_locale()->decimal_point;
break;