Re: [Exim] bug in tod_stamp() (exim-4.20) ?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: yurik shestakov
Datum:  
To: exim-users
Betreff: Re: [Exim] bug in tod_stamp() (exim-4.20) ?
On Thu, Jun 26, 2003 at 09:56:00AM +0100, Philip Hazel wrote:
PH> On Thu, 19 Jun 2003, yurik shestakov wrote:


>> Result of fuctions strftime() is locale-dependent. So I had incorrect
>> email headers when LANG (or LC_TIME) =ru_UA.KOI8-U (cyrillic month and
>> day names in 'Date:' and 'From_').


PH> On checking this, I find that the C standard says


PH> "At program startup, the equivalent of


PH>      setlocale(LC_ALL, "C");


PH> is executed."


PH> So I don't think this is a bug in Exim; I think it is a bug in your C
PH> runtime environment. However, there is no harm in actually including


I did testing on Debian 3.0 (woody): gcc-2.95.4, glibc-2.2.5.

PH>    setlocale(LC_ALL, "C");


PH> at the start of Exim, just to be on the safe side. So I will do that.


It may be not so safe, if perl-hooked function changes default value.
But, it's a problem of those who do it without care.

--
// yurik shestakov