On Thu, 2007-05-03 at 16:57 -0700, Robert Spier wrote:
> >
> > What I have seen elsewhere is (equivalent to):
> >
> > LANG=C ./qpsmtpd-forkserver
> >
> > but that might be excessive.
> >
>
> This is probably the right thing to do.
>
> Although BEGIN { setlocale(...) } might be ok, if it can be executed
> early enough. The above is the only way to "guarantee" the right
> behavior.
Yep. However, "guarantee" is obvious (or was to me) ... my hesitation
is more in regards to "right":
1. Does it do what Dominik needs? I.e. does it make his patch
unnecessary? I think it should.
2. Is it compatible with Ask's plans for qpsmtpd? It prevents him
from having qpsmptd localized (i think). Again, I think this is correct
since qpsmtpd is a server. The reason the trouble arises is that the
typical way of running it, at present, is under an 'smtpd' user whose
LANG settings are derived from the OS default, which is typically
intended for interactive users.
Just to belabour the obvious ... I have run into LANG problems before in
other applications.
>
> -R
--
--gh