Re: Gtk+ print support - request for feedback



On Mon, 2006-03-06 at 08:27 -0500, Michael Sweet wrote:

> The man page for setlocale() says nothing about thread safety, but
> given how all of the other standard C calls work I'm frankly shocked
> that setting the locale in one thread affects the others.  Is this
> just a bug on Linux, or is it a general problem on other operating
> systems?

Specified part of POSIX... I think the idea of the specifiers is that
you'd set the locale once at the beginning of the program for all
threads.

The GNU C library has a uselocale() (if I recall the name correctly)
that is thread specific, but that doesn't do much good for portable
code.

					Owen





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