Re: setlocale() evil?



Thanks Owen, that was very helpful.
- Bill

On Wed, 2003-06-25 at 21:26, Owen Taylor wrote:
...> There's nothing wrong with setlocale() in an application that knows
> it isn't threaded. What was being pointed out in the bug report was
> that libgnomeprint was doing it in a library which can't know the
> app isn't threaded.
> 
> In a threaded app, if you actually needed to switch locales, you would
> need to use something like recent GNU libc's uselocale(). Luckily,
> in most cases, there are other alternatives, as described in the
> bug report.
> 
> Regards,
> 					Owen
> 
> 





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