From a68ca43b9014ae45feb3162a5f066524e2b38e1a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 6 Jul 2016 15:41:35 +0200 Subject: Redefine locale info in struct _reent for per-thread locales The _reent members _current_category and _current_locale are not used at all. _current_locale is set to "C" in various points of the code but its value is just as unused as _current_category. This patch redefines these members without changing the size of the structure to allow for an implementation of per-thread locales per POSIX-1.2008 (i.e. uselocale and usage of the per-thread locale in subsequent function calls). Signed-off-by: Corinna Vinschen --- winsup/cygwin/dcrt0.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'winsup') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 2b8b9f5..2328411 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -740,7 +740,6 @@ dll_crt0_0 () _impure_ptr->_stdin = &_impure_ptr->__sf[0]; _impure_ptr->_stdout = &_impure_ptr->__sf[1]; _impure_ptr->_stderr = &_impure_ptr->__sf[2]; - _impure_ptr->_current_locale = "C"; user_data->impure_ptr = _impure_ptr; user_data->impure_ptr_ptr = &_impure_ptr; -- cgit v1.1