Re: [exim] Re: Bug#283538: exim4: perl calls setlocale() beh…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: exim-users
Sujet: Re: [exim] Re: Bug#283538: exim4: perl calls setlocale() behind exim's back
On Tue, 30 Nov 2004, Philip Hazel wrote:
>
> /* The C standard says that the equivalent of setlocale(LC_ALL, "C") is obeyed
> at the start of a program; however, it seems that some environments do not
> follow this. A "strange" locale can affect the formatting of timestamps, so we
> make quite sure. */
>
> setlocale(LC_ALL, "C");
>
> Looks like it needs to re-do that call on the return from Perl...


It might be a good idea to hard-code the day and month names in tod.c,
since it doesn't really need the complexity of strftime and it doesn't
need (or want) any localization.

However that won't deal with other lurking locale sensitivities.

Tony.
--
f.a.n.finch <dot@???> http://dotat.at/
MALIN HEBRIDES: NORTHEAST 4 OR 5 INCREASING 6. RAIN LATER. GOOD BECOMING
MODERATE.