On Fri, May 04, 2007 at 08:48:08PM +0200, Peter J. Holzer wrote:
> 1) LANG should be set globally to a value, so that each method and
>    plugin can assume a specific behaviour (that value should probably be
>    "C" or undef, since any other value isn't portable between systems), 
> 
>    or
> 
> 2) A function which modifies LANG should restore the original value
>    before returning. So if a specific function needs LANG=C or maybe
>    LANG=de_AT.utf8 to achieve a specific effect, it can change it, but
>    it must change LANG back to the value it was before. It can't just
>    set it and leave it at that value. If LANG can change its value
>    seemingly at random during execution, that's a maintenance nightmare.

Wouldn't it be a more stable design if the main code checked that LANG
still is set to C or undef after each plugin hook call? I don't think
that generates a lot of overhead.

-Johan

Reply via email to