acadia-newlib/newlib/libc/include
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
..
machine 2010-02-11 Craig Howland <howland@LGSInnovations.com> 2010-02-11 21:03:51 +00:00
rpc * libc/xdr/README: Correct grammatical errors. 2010-03-02 14:29:36 +00:00
sys 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-04-01 18:33:37 +00:00
_ansi.h 2009-12-17 Jerker Back <jerker.back@gmail.com> 2009-12-17 19:43:43 +00:00
_syslist.h 2009-12-17 Jeff Johnston <jjohnstn@redhat.com> 2009-12-17 21:08:04 +00:00
alloca.h 2006-12-13 Joel Schopp <jschopp@austin.ibm.com> 2006-12-13 23:01:21 +00:00
ar.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
argz.h * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len 2007-05-23 16:36:23 +00:00
assert.h 2008-07-17 Jeff Johnston <jjohnstn@redhat.com> 2008-07-17 20:56:51 +00:00
ctype.h * libc/include/ctype.h (__ctype_lookup): Fix precedence. 2009-11-06 03:27:19 +00:00
dirent.h * libc/include/dirent.h: Protect against multiple inclusion. 2001-11-30 17:26:47 +00:00
envlock.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
envz.h * libc/argz: New directory. 2002-06-14 20:51:09 +00:00
errno.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
fastmath.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
fcntl.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
fnmatch.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
getopt.h 2009-10-08 Eric Blake <ebb9@byu.net> 2009-10-08 16:26:28 +00:00
glob.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
grp.h * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin. 2004-05-17 16:06:14 +00:00
iconv.h iconv: match SUSv3 prototype 2009-08-21 20:27:10 +00:00
ieeefp.h 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
inttypes.h 2009-01-19 Neal H. Walfield <neal@gnu.org> 2009-01-19 22:02:06 +00:00
langinfo.h Extend locale support to maintain wide char values of native strings 2010-04-28 09:59:37 +00:00
libgen.h 2005-04-08 Jeff Johnston <jjohnstn@redhat.com> 2005-04-08 20:48:40 +00:00
limits.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
locale.h * libc/include/locale.h (struct lconv): Add missing members required 2009-06-16 19:45:17 +00:00
malloc.h * libc/include/malloc.h: On cygwin, define malloc _r functions as wrapper 2002-08-26 04:33:46 +00:00
math.h 2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> 2010-01-11 22:55:47 +00:00
newlib.h 2002-08-28 Jeff Johnston <jjohnstn@redhat.com> 2002-08-28 23:42:53 +00:00
paths.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
process.h * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix spawnve 2002-06-11 02:26:43 +00:00
pthread.h 2009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org> 2009-12-17 19:22:23 +00:00
pwd.h * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid 2005-02-08 20:55:18 +00:00
reent.h 2009=08-12 Jeff Johnston <jjohnstn@redhat.com> 2009-08-12 18:22:38 +00:00
regdef.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
regex.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
sched.h 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-04-01 18:33:37 +00:00
search.h * Makefile.am (LIB_OBJECTLISTS): Add 2002-06-20 19:51:40 +00:00
setjmp.h 2002-06-27 Benjamin Kosnik <bkoz@redhat.com> 2002-06-27 23:58:38 +00:00
signal.h 2002-07-24 Jeff Johnston <jjohnstn@redhat.com> 2002-07-24 18:18:07 +00:00
stdint.h 2009-04-24 Joseph Myers <joseph@codesourcery.com> 2009-04-24 21:55:07 +00:00
stdio.h * libc/time/strftime.c: Add support for era and alt_digits data from 2010-02-26 09:41:44 +00:00
stdlib.h Extend locale support to maintain wide char values of native strings 2010-04-28 09:59:37 +00:00
string.h Per Posix, strsignal returns non-const char*. 2008-06-18 15:27:41 +00:00
tar.h 2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org> 2007-08-03 21:03:40 +00:00
termios.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
time.h 2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-10-16 21:53:58 +00:00
unctrl.h * libc/include/sys/config.h: define __IMPORT appropriately 2000-08-01 20:51:51 +00:00
unistd.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
utime.h 2002-07-04 Jeff Johnston <jjohnstn@redhat.com> 2002-07-04 22:51:08 +00:00
utmp.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wchar.h * libc/include/wchar.h (struct tm0: Declare as incomplete type. 2009-10-15 08:23:27 +00:00
wctype.h 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp> 2002-11-07 00:44:31 +00:00
wordexp.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00