diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-07-14 14:32:08 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-07-14 14:32:08 +0000 |
commit | 35d40a980556bac0460dc027a44fb5285cda3364 (patch) | |
tree | f2ee1dcc0c96c081785c7f34dd40ca62216e167e /src | |
parent | 16282d2b161d7a169cdbcafaea7222233ba3dab8 (diff) |
Reset the locale after initializing Perl, as well as after calling a Perl
function (which it did previously).
Diffstat (limited to 'src')
-rw-r--r-- | src/src/perl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/perl.c b/src/src/perl.c index 894c1c59d..4cbcec7f5 100644 --- a/src/src/perl.c +++ b/src/src/perl.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/perl.c,v 1.4 2005/02/17 11:58:26 ph10 Exp $ */ +/* $Cambridge: exim/src/src/perl.c,v 1.5 2006/07/14 14:32:09 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -129,6 +129,8 @@ init_perl(uschar *startup_code) perl_eval_sv(sv, G_SCALAR|G_DISCARD|G_KEEPERR); SvREFCNT_dec(sv); if (SvTRUE(ERRSV)) return US SvPV(ERRSV, len); + + setlocale(LC_ALL, "C"); /* In case it got changed */ return NULL; } } |