* 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.
This commit is contained in:
parent
5d76584680
commit
6eaf061dc4
|
@ -1,3 +1,10 @@
|
|||
2010-02-22 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* 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.
|
||||
|
||||
2010-02-18 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.
|
||||
|
|
|
@ -133,6 +133,9 @@ typedef int nl_item;
|
|||
#define _NL_CTYPE_EXTRA_MAP_13 82
|
||||
#define _NL_CTYPE_EXTRA_MAP_14 83
|
||||
|
||||
#define _NL_TIME_DATE_FMT 84
|
||||
#define _DATE_FMT _NL_TIME_DATE_FMT
|
||||
|
||||
__BEGIN_DECLS
|
||||
char *nl_langinfo(nl_item);
|
||||
__END_DECLS
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue