[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing language multiple times in one process
From: |
Francis Irving |
Subject: |
Re: Changing language multiple times in one process |
Date: |
Tue, 8 Nov 2005 15:40:37 +0000 |
User-agent: |
Mutt/1.5.9i |
On Mon, Oct 31, 2005 at 11:33:50AM +0100, Bruno Haible wrote:
> > I've discovered a problem with the tsearch code in intl/dcigettext.c.
> > It caches the results of queries, but does not check against the
> > language. This means that sometimes you get the results from the wrong
> > language back again.
>
> You need to call textdomain (textdomain (NULL)) in order to make gettext
> aware of the change. Just setting an environment variable doesn't tell
> gettext() to invalidate its cache.
Thanks Bruno, that works.
Could you make a note to add some more in the documentation about
this?
It could be in the documentation for the "gettext" command, explaining
how it reads LANG. Or in a section on caching.
Francis
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Changing language multiple times in one process,
Francis Irving <=