On 2007-05-04 17:08:58 +0200, Peter J. Holzer wrote:
> On 2007-05-03 17:20:39 +0200, Dominik Meyer wrote:
> > --- SMTP.pm.old     2007-05-03 16:43:50.000000000 +0200
> > +++ SMTP.pm 2007-05-03 16:47:25.000000000 +0200
> > @@ -534,6 +534,9 @@
> >    my $authheader = (defined $self->{_auth} and $self->{_auth} == OK) ?
> >      "(smtp-auth username $self->{_auth_user}, mechanism 
> > $self->{_auth_mechanism})\n" : "";
> >  
> > +   #me need the english/C Locale here otherwise problems with outlook 
> > client
> > +   my $loc = setlocale( LC_ALL, "C" );
> > +
> >    $header->add("Received", "from ".$self->connection->remote_info
> >                 ." (HELO ".$self->connection->hello_host . ") 
> > (".$self->connection->remote_ip
> >                 . ")\n  $authheader  by ".$self->config('me')." 
> > (qpsmtpd/".$self->version
[...]
> (Also, I'm not 100% convinced that the fix is even guaranteed to be
> correct. I don't have the C standard at hand to check - I'll do so when
> I get home)

Ok, I checked. X3.159-1989 (aka C89) doesn't specify the strings
strftime should return for %a, %A, %b and %B in the C locale, but
ISO-9899-1999 (aka C99) does. However, even C89 defined the strings for
asctime(), and I think an implementation which used different strings
for asctime and strftime is sufficiently wierd that we don't have to
worry about it. So setting LANG=C (temporarily or globally) is probably
an adequate fix.

        hp


-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Sam in "Freefall"

Attachment: signature.asc
Description: Digital signature

Reply via email to