diff options
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); } /* |