acadia-newlib/newlib/libc
Corinna Vinschen 28186e81d9 * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
_MB_CAPABLE systems.
	* libc/ctype/iswblank.c: Ditto.
	* libc/ctype/iswcntrl.c: Ditto.
	* libc/ctype/iswprint.c: Ditto.
	* libc/ctype/iswpunct.c: Ditto.
	* libc/ctype/iswspace.c: Ditto.
	* libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
	Explain why.
	* libc/ctype/towlower.c: Ditto.
	* libc/ctype/towupper.c: Ditto.
	* libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
	and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
	defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
	* libc/include/sys/reent.h (struct _reent): Mark _current_category
	and _current_locale as unused.
	* libc/locale/locale.c: Add new charset support to documentation.
	Include ../stdio/local.h from here.
	(lc_ctype_charset): Set to "ASCII" by default.
	(lc_message_charset): Ditto.
	(_setlocale_r): Don't set _current_category and _current_locale.
	(loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
	systems, set __mbtowc and __wctomb function pointers to function
	corresponding with current charset.  Don't allow non-existant
	ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
	On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
	call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
	_current_category and _current_locale.
	* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
	* libc/stdlib/Makefile.in: Regenerate.
	* libc/stdlib/local.h: Add prototype for __locale_charset.
	Add prototypes for __mbtowc and __wctomb pointers.
	Add prototypes for charset-specific _wctomb_r and _mbtowc_r
	functions.
	Declare tables and functions from sb_charsets.c.
	* libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
	by default.
	(_mbtowc_r): Just call __mbtowc from here.
	(__ascii_mbtowc): New function.
	(__iso_mbtowc): New function.
	(__cp_mbtowc): New function.
	(__utf8_mbtowc): New function.
	(__sjis_mbtowc): New function.  Disable on Cygwin.
	(__eucjp_mbtowc): New function.  Disable on Cygwin.
	(__jis_mbtowc): New function.  Disable on Cygwin.
	* libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
	conversion tables for all ISO and CP charsets.
	(__iso_8859_index): New function.
	(__cp_index): New function.
	* libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
	by default.
	(_wctomb_r): Just call __wctomb from here.
	(__ascii_wctomb): New function.
	(__utf8_wctomb): New function.
	(__sjis_wctomb): New function.  Disable on Cygwin.
	(__eucjp_wctomb): New function.  Disable on Cygwin.
	(__jis_wctomb): New function.  Disable on Cygwin.
	(__iso_wctomb): New function.
	(__cp_wctomb): New function.
2009-03-24 10:13:27 +00:00
..
argz 2008-11-27 Craig Howland <howland@LGSInnovations.com> 2008-11-27 20:45:37 +00:00
ctype * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
errno * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
iconv * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
include * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
locale * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
machine 2009-03-23 Richard Earnshaw <rearnsha@arm.com> 2009-03-23 18:25:10 +00:00
misc 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
posix 2008-11-27 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-11-27 21:01:40 +00:00
reent * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related 2009-03-06 17:11:20 +00:00
search 2008-11-24 Jeff Johnston <jjohnstn@redhat.com> 2008-11-24 21:16:06 +00:00
signal * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
stdio * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations 2009-03-14 12:14:08 +00:00
stdio64 * libc/include/stdio.h (__SMOD): Remove definition of unused flag. 2008-11-24 17:15:43 +00:00
stdlib * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
string * libc/include/sys/errno.h (ESTRPIPE): Define. 2009-03-15 13:41:46 +00:00
sys * libc/locale/locale.c (_setlocale_r): New implementation based on 2009-03-03 09:28:45 +00:00
syscalls 2008-12-11 Jeff Johnston <jjohnstn@redhat.com> 2008-12-11 22:48:38 +00:00
time * libc/time/time.tex (wcsftime.def): Include. 2009-03-12 15:34:57 +00:00
unix 2009-02-23 Craig Howland <howland@LGSInnovations.com> 2009-02-23 23:42:03 +00:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.in * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
aclocal.m4 * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
configure 2008-12-19 Jeff Johnston <jjohnstn@redhat.com> 2008-12-22 19:45:56 +00:00
configure.in * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
libc.texinfo 2008-12-19 Jeff Johnston <jjohnstn@redhat.com> 2008-12-22 19:45:56 +00:00
saber import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sys.tex 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:36:05 +00:00