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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: yurik shestakov
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] bug in tod_stamp() (exim-4.20) ?
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_').


On checking this, I find that the C standard says

"At program startup, the equivalent of

     setlocale(LC_ALL, "C");


is executed."

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

setlocale(LC_ALL, "C");

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


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book