gcc/libgfortran/io
Janne Blomqvist 9cbecd06be PR 47007 and 61847 Locale failures in libgfortran.
2014-11-10  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/47007
	PR libfortran/61847
	* config.h.in: Regenerated.
	* configure: Regenerated.
	* configure.ac (AC_CHECK_HEADERS_ONCE): Check for xlocale.h.
	(AC_CHECK_FUNCS_ONCE): Check for newlocale, freelocale, uselocale,
	strerror_l.
	* io/io.h (locale.h): Include.
	(xlocale.h): Include if present.
	(c_locale): New variable.
	(old_locale): New variable.
	(old_locale_ctr): New variable.
	(old_locale_lock): New variable.
	(st_parameter_dt): Add old_locale member.
	* io/transfer.c (data_transfer_init): Set locale to "C" if doing
	formatted transfer.
	(finalize_transfer): Reset locale to previous.
	* io/unit.c (c_locale): New variable.
	(old_locale): New variable.
	(old_locale_ctr): New variable.
	(old_locale_lock): New variable.
	(init_units): Init c_locale, init old_locale_lock.
	(close_units): Free c_locale.
	* runtime/error.c (locale.h): Include.
	(xlocale.h): Include if present.
	(gf_strerror): Use strerror_l if available. Reset locale to
	LC_GLOBAL_LOCALE for strerror_r branch.

2014-11-10  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/47007
	PR libfortran/61847
	* gfortran.texi: Add note about locale issues to thread-safety
	section.

From-SVN: r217273
2014-11-10 02:17:16 +02:00
..
close.c PR libfortran/62768 Handle filenames with embedded null characters. 2014-09-17 00:40:28 +03:00
fbuf.c Introduce xrealloc, use it. 2014-05-26 23:56:45 +03:00
fbuf.h
file_pos.c
format.c re PR fortran/61632 (Improve error locus on large format strings) 2014-07-20 20:03:41 +00:00
format.h
inquire.c Fix indentation 2014-09-18 00:59:09 +03:00
intrinsics.c
io.h PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
list_read.c re PR libfortran/61640 (KIND=4 Character Array Internal Unit Read Fail) 2014-06-29 02:49:45 +00:00
lock.c
open.c PR libfortran/62768 Handle filenames with embedded null characters. 2014-09-17 00:40:28 +03:00
read.c
size_from_kind.c
transfer128.c
transfer.c PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
unit.c PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
unix.c PR libfortran/62768 Handle filenames with embedded null characters. 2014-09-17 00:40:28 +03:00
unix.h PR 56981 Flush buffer at record boundary if possible. 2014-06-08 08:43:29 +03:00
write_float.def
write.c Introduce xmallocarray, an overflow checking variant of xmalloc. 2014-06-17 06:50:34 +03:00