You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2007/12/26 11:10:41 UTC
svn commit: r606874 - /spamassassin/trunk/sa-compile.raw
Author: sidney
Date: Wed Dec 26 02:10:40 2007
New Revision: 606874
URL: http://svn.apache.org/viewvc?rev=606874&view=rev
Log:
bug 5748: sa-compile calls the system sort which on some platforms needs to have LC_ALL set to C in the enviroment
Modified:
spamassassin/trunk/sa-compile.raw
Modified: spamassassin/trunk/sa-compile.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-compile.raw?rev=606874&r1=606873&r2=606874&view=diff
==============================================================================
--- spamassassin/trunk/sa-compile.raw (original)
+++ spamassassin/trunk/sa-compile.raw Wed Dec 26 02:10:40 2007
@@ -326,8 +326,12 @@
my $modname;
my $force = 1;
my $FILE = shift;
+ my $fh;
- open(my $fh, "sort $FILE |") || die "open($FILE): $!";
+ {
+ local $ENV{LC_ALL} = "C";
+ open($fh, "sort $FILE |") || die "open($FILE): $!";
+ }
# read ruleset name from the first line in the file
my $ruleset_name;
$_ = <$fh>;