diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-07-06 15:41:35 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-07-06 15:41:35 +0200 |
commit | a68ca43b9014ae45feb3162a5f066524e2b38e1a (patch) | |
tree | 425e78959d1d619cb5c920b772559f864d5da46a /winsup | |
parent | b9ac3c2c8b761b74d09db3bbd0d0498cd7110d94 (diff) | |
download | newlib-a68ca43b9014ae45feb3162a5f066524e2b38e1a.zip newlib-a68ca43b9014ae45feb3162a5f066524e2b38e1a.tar.gz newlib-a68ca43b9014ae45feb3162a5f066524e2b38e1a.tar.bz2 |
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 <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 1 |
1 files changed, 0 insertions, 1 deletions
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; |