diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-30 00:28:00 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-30 00:28:00 +0000 |
commit | c14de078c5ec6f891f2961542617e743764ec1da (patch) | |
tree | 81ea39e514b4e9cab077cf8c64782d1a46172766 /libthreads | |
parent | 9cb634d16d74814e215b9c8780096967683a9e3d (diff) |
2002-08-26 Roland McGrath <roland@frob.com>
* cthreads.c (cthread_body) [HAVE_USELOCALE]: Call uselocale to
initialize the thread to the global locale.
Diffstat (limited to 'libthreads')
-rw-r--r-- | libthreads/cthreads.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c index 38c65665..aef20bed 100644 --- a/libthreads/cthreads.c +++ b/libthreads/cthreads.c @@ -30,6 +30,9 @@ * catch is reserved word in c++. * * $Log: cthreads.c,v $ + * Revision 1.15 2002/07/31 02:35:14 marcus + * Add comment to last change, for the benefit of the next merge :) + * * Revision 1.14 2002/07/31 02:20:44 marcus * 2002-07-29 Marcus Brinkmann <marcus@gnu.org> * @@ -148,6 +151,10 @@ #include <mach/mig_support.h> #include "cthread_internals.h" +#ifdef HAVE_USELOCALE +# include <locale.h> +#endif + /* * Thread status bits. */ @@ -285,6 +292,11 @@ cthread_body(cproc_t self) /* * Execute the fork request. */ +#ifdef HAVE_USELOCALE + /* A fresh thread needs to be bound to the + global locale. */ + uselocale (LC_GLOBAL_LOCALE); +#endif t->result = (*(t->func))(t->arg); } /* |