From c14de078c5ec6f891f2961542617e743764ec1da Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 30 Aug 2002 00:28:00 +0000 Subject: 2002-08-26 Roland McGrath * cthreads.c (cthread_body) [HAVE_USELOCALE]: Call uselocale to initialize the thread to the global locale. --- libthreads/cthreads.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libthreads') 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 * @@ -148,6 +151,10 @@ #include #include "cthread_internals.h" +#ifdef HAVE_USELOCALE +# include +#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); } /* -- cgit v1.2.3