commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hurd/libpthread pthread/pt-create.c ChangeLog


From: Neal H. Walfield
Subject: hurd/libpthread pthread/pt-create.c ChangeLog
Date: Tue, 26 Nov 2002 12:50:48 -0500

CVSROOT:        /cvsroot/hurd
Module name:    hurd
Changes by:     Neal H. Walfield <address@hidden>       02/11/26 12:50:48

Modified files:
        libpthread/pthread: pt-create.c 
        libpthread     : ChangeLog 

Log message:
        2002-11-26  Neal H. Walfield  <address@hidden>
        
        * pthread/pt-create.c [HAVE_USELOCAL]: Include <locale.h>.
        (entry_point) [HAVE_USELOCALE]: Initialize the thread to the
        global locale.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libpthread/pthread/pt-create.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libpthread/ChangeLog.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: hurd/libpthread/ChangeLog
diff -u hurd/libpthread/ChangeLog:1.6 hurd/libpthread/ChangeLog:1.7
--- hurd/libpthread/ChangeLog:1.6       Mon Nov 25 16:07:35 2002
+++ hurd/libpthread/ChangeLog   Tue Nov 26 12:50:48 2002
@@ -1,3 +1,9 @@
+2002-11-26  Neal H. Walfield  <address@hidden>
+
+       * pthread/pt-create.c [HAVE_USELOCAL]: Include <locale.h>.
+       (entry_point) [HAVE_USELOCALE]: Initialize the thread to the
+       global locale.
+
 2002-11-25  Neal H. Walfield  <address@hidden>
 
        * sysdeps/mach/hurd/i386/pt-setup.c (__pthread_setup): Fix last
Index: hurd/libpthread/pthread/pt-create.c
diff -u hurd/libpthread/pthread/pt-create.c:1.1 
hurd/libpthread/pthread/pt-create.c:1.2
--- hurd/libpthread/pthread/pt-create.c:1.1     Thu Oct 10 19:05:06 2002
+++ hurd/libpthread/pthread/pt-create.c Tue Nov 26 12:50:48 2002
@@ -26,6 +26,10 @@
 
 #include <pt-internal.h>
 
+#ifdef HAVE_USELOCALE
+# include <locale.h>
+#endif
+
 /* The total number of pthreads currently active.  This is defined
    here since it would be really stupid to have a threads-using
    program that doesn't call `pthread_create'.  */
@@ -36,6 +40,11 @@
 static void
 entry_point (void *(*start_routine)(void *), void *arg)
 {
+#ifdef HAVE_USELOCALE
+  /* A fresh thread needs to be bound to the global locale.  */
+  uselocale (LC_GLOBAL_LOCALE);
+#endif
+
   pthread_exit (start_routine (arg));
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]