newlib-cygwin/newlib/libc/time
Corinna Vinschen d47d5b850b Extend locale support to maintain wide char values of native strings
if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
	* libc/include/langinfo.h (enum __nl_item): New type.  Define all
	native values accessible through nl_langinfo.  Define previously
	existing POSIX-compatible values as macros as well.
	* libc/include/stdlib.h (__mb_cur_max): Drop declaration.
	(__locale_mb_cur_max): Declare.
	(MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
	* libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
	* libc/locale/Makefile.in: Regenerate.
	* libc/locale/lctype.c: New file to define and load LC_CTYPE category.
	* libc/locale/lctype.h: New file, matching header.
	* libc/locale/lmessages.c (_C_messages_locale): Add default values for
	wide char members.
	(__messages_load_locale): Add _C_messages_locale in call to
	__set_lc_messages_from_win.
	* libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
	* libc/locale/lmonetary.c (_C_monetary_locale):  Add default values for
	wide char members.
	(__monetary_load_locale): Add _C_monetary_locale in call to
	__set_lc_monetary_from_win.
	* libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
	Add numerical values for international currency formatting per
	POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
	* libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
	wide char members.
	(__numeric_load_locale): Add _C_numeric_locale in call to
	__set_lc_numeric_from_win.
	* libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
	* libc/locale/locale.c (loadlocale): Return doing nothing if category
	locale didn't change.  Convert category if chain to switch statement.
	Call __ctype_load_locale in LC_CTYPE case.
	(__locale_charset): Add (but disable for now) returning codeset from
	__get_current_ctype_locale.
	(__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
	from __get_current_ctype_locale.
	(__locale_msgcharset): Add returning codeset from
	__get_current_messages_locale.
	(_localeconv_r): Accommodate int_XXX values.
	* libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
	be returned for non-POSIX values.
	(nl_Langinfo): Return correct codeset for each locale category.  Return
	extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
	* libc/locale/timelocal.c (_C_time_locale): Add default values for
	wide char members.
	(__time_load_locale): Add _C_time_locale in call to
	__set_lc_time_from_win.
	* libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
	* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
	and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
	* libc/time/strftime.c: Rework to accommodate availability of wide char
	strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
2010-04-28 09:59:37 +00:00
..
Makefile.am * libc/time/strftime.c: Adapt for dual-purpose use so not only 2009-03-09 12:35:03 +00:00
Makefile.in * libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF. 2010-04-22 23:32:42 +00:00
asctime.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
asctime_r.c Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru> 2000-05-10 17:58:29 +00:00
clock.c * libc/time/clock.c: Clarify documentation of return value when no measurement 2003-10-14 17:41:30 +00:00
ctime.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
ctime_r.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
difftime.c 2003-01-21 Anita Kulkarni <anitak@kpit.com> 2003-01-21 19:37:04 +00:00
gettzinfo.c 2005-02-25 Eric Blake <ebb9@byu.net> 2005-02-25 22:31:21 +00:00
gmtime.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
gmtime_r.c 2002-04-17 Jeff Johnston <jjohnstn@redhat.com> 2002-04-17 21:23:31 +00:00
lcltime.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
lcltime_r.c 2002-04-17 Jeff Johnston <jjohnstn@redhat.com> 2002-04-17 21:23:31 +00:00
local.h 2005-02-23 Jeff Johnston <jjohnstn@redhat.com> 2005-02-23 19:08:58 +00:00
mktime.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
mktm_r.c 2005-02-25 Eric Blake <ebb9@byu.net> 2005-02-25 22:31:21 +00:00
strftime.c Extend locale support to maintain wide char values of native strings 2010-04-28 09:59:37 +00:00
strptime.c * libc/locale/lmonetary.c (__monetary_load_locale): Take additional 2010-01-22 13:03:42 +00:00
time.c 2007-07-06 Jeff Johnston <jjohnstn@redhat.com> 2007-07-06 16:56:30 +00:00
time.tex * libc/time/strftime.c: Adapt for dual-purpose use so not only 2009-03-09 12:35:03 +00:00
tzlock.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
tzset.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
tzset_r.c 2008-10-06 Craig Howland <howland@LGSInnovations.com> 2008-10-06 19:21:29 +00:00
tzvars.c 2005-11-08 Tom Walsh <tom@openhardware.net> 2005-11-08 22:44:16 +00:00
wcsftime.c * libc/time/time.tex (wcsftime.def): Include. 2009-03-12 15:34:57 +00:00