newlib-cygwin/newlib/libc/stdio
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 Add fpurge. 2009-07-03 11:58:04 +00:00
Makefile.in * libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF. 2010-04-22 23:32:42 +00:00
asiprintf.c Fix 2008-04-14 regression in asprintf(ptr,""). 2008-04-30 02:47:14 +00:00
asniprintf.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
asnprintf.c 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 22:08:02 +00:00
asprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
clearerr.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
diprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
dprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
fclose.c Fix fflush issues. 2007-07-13 20:37:53 +00:00
fcloseall.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
fdopen.c More POSIX stream corner cases. 2007-07-31 20:49:40 +00:00
feof.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
ferror.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fflush.c * libc/stdio/fflush.c (_fflush_r): Store old errno to check for 2009-10-30 08:26:41 +00:00
fgetc.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
fgetpos.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
fgets.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
fgetwc.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
fgetws.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
fileno.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
findfp.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
fiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fiscanf.c 2004-11-23 Jeff Johnston <jjohnstn@redhat.com> 2004-11-24 00:45:41 +00:00
flags.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
floatio.h 2000-12-06 Jeff Johnston <jjohnstn@redhat.com> 2000-12-06 23:50:11 +00:00
fmemopen.c Implement fmemopen and open_memstream. 2007-08-02 20:23:06 +00:00
fopen.c 2004-06-11 Antony King <antony.king@st.com> 2004-06-11 20:37:10 +00:00
fopencookie.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
fprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fpurge.c Add fpurge. 2009-07-03 11:58:04 +00:00
fputc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fputs.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
fputwc.c * libc/stdio/fputwc.c: Fix typo in man page info. 2009-02-16 15:04:34 +00:00
fputws.c 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-12-12 17:21:08 +00:00
fread.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
freopen.c * libc/stdio/freopen.c: Add <string.h> for memset prototype. 2008-12-12 15:45:19 +00:00
fscanf.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
fseek.c 2009-12-17 Jerker Back <jerker.back@gmail.com> 2009-12-17 19:43:43 +00:00
fseeko.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
fsetpos.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
ftell.c Fix ftell bug after ungetc. 2008-03-04 02:22:36 +00:00
ftello.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
funopen.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fvwrite.c Fix fflush issues. 2007-07-13 20:37:53 +00:00
fvwrite.h 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00
fwalk.c 2009-01-12 Jeff Johnston <jjohnstn@redhat.com> 2009-01-12 22:19:11 +00:00
fwide.c 2009-01-05 Craig Howland <howland@LGSInnovations.com> 2009-01-05 19:08:03 +00:00
fwprintf.c * libc/include/stdio.h (__VALIST): Guard against multiple definition. 2009-03-06 09:55:52 +00:00
fwrite.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
fwscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
getc.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
getc_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
getchar.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
getchar_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
getdelim.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
getline.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
gets.c 2009-04-24 Jeff johnston <jjohnstn@redhat.com> 2009-04-24 22:52:52 +00:00
getw.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
getwc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
getwchar.c 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-12-12 17:21:08 +00:00
iprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
iscanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
local.h * libc/stdio/local.h (__chclass, __state_table, __action_table): 2009-04-22 08:30:03 +00:00
makebuf.c 2008-01-03 Jeff Johnston <jjohnstn@redhat.com> 2008-01-03 22:33:37 +00:00
mktemp.c 2009-08-21 Craig Howland <howland@LGSInnovations.com> 2009-08-21 20:25:28 +00:00
open_memstream.c * libc/stdio/open_memstream.c (stdint.h): Include. 2009-02-25 04:00:05 +00:00
perror.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
printf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
putc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
putc_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
putchar.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
putchar_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
puts.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
putw.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
putwc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
putwchar.c 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-12-12 17:21:08 +00:00
refill.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
remove.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
rename.c 2007-09-18 Jeff Johnston <jjohnstn@redhat.com> 2007-09-18 19:32:43 +00:00
rewind.c * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22. 2007-05-25 17:05:09 +00:00
rget.c 2008-03-11 Jeff Johnston <jjohnstn@redhat.com> 2008-03-11 19:13:30 +00:00
scanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
sccl.c 2004-11-23 Jeff Johnston <jjohnstn@redhat.com> 2004-11-24 00:45:41 +00:00
setbuf.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
setbuffer.c 2004-09-16 Antony King <antony.king@st.com> 2004-09-16 21:15:14 +00:00
setlinebuf.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
setvbuf.c Fix fflush issues. 2007-07-13 20:37:53 +00:00
siprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
siscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
sniprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
snprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
sprintf.c * libc/stdio/swprintf.c (_swprintf_r, swprintf): 2009-03-12 10:27:10 +00:00
sscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
stdio.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
stdio.tex Add fpurge. 2009-07-03 11:58:04 +00:00
swprintf.c * libc/stdio/swprintf.c (_swprintf_r, swprintf): 2009-03-12 10:27:10 +00:00
swscanf.c * libc/stdio/swscanf.c: Some documentation corrections. 2009-03-12 14:30:28 +00:00
tmpfile.c * stdio/tmpfile.c: Include <sys/stat.h>. 2007-05-17 12:10:29 +00:00
tmpnam.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
ungetc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
ungetwc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
vasiprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vasniprintf.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
vasnprintf.c 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
vasprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vdiprintf.c 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 16:45:04 +00:00
vdprintf.c 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 16:45:04 +00:00
vfieeefp.h 2007-08-31 Antony King <antony.king@st.com> 2007-08-31 21:21:27 +00:00
vfprintf.c * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant 2010-02-15 16:10:28 +00:00
vfscanf.c 2010-01-19 Andy Koppe <andy.koppe@gmail.com> 2010-01-19 23:16:45 +00:00
vfwprintf.c Extend locale support to maintain wide char values of native strings 2010-04-28 09:59:37 +00:00
vfwscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
viprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
viscanf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
vprintf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
vscanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
vsiprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vsiscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vsniprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vsnprintf.c Fix 2008-04-14 regression in asprintf(ptr,""). 2008-04-30 02:47:14 +00:00
vsprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vsscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vswprintf.c * libc/stdio/swprintf.c (_swprintf_r, swprintf): 2009-03-12 10:27:10 +00:00
vswscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vwprintf.c * libc/include/stdio.h (__VALIST): Guard against multiple definition. 2009-03-06 09:55:52 +00:00
vwscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
wbuf.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
wprintf.c * libc/include/stdio.h (__VALIST): Guard against multiple definition. 2009-03-06 09:55:52 +00:00
wscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
wsetup.c 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00