Re: setlocale() evil?
- From: Bill Haneman <bill haneman sun com>
- To: Owen Taylor <otaylor redhat com>
- Cc: Kjartan Maraas <kmaraas broadpark no>, desktop-devel-list gnome org
- Subject: Re: setlocale() evil?
- Date: 25 Jun 2003 22:32:27 +0100
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]