summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules/conf/confmaker.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/conf/confmaker.pl b/modules/conf/confmaker.pl
index 6367ec5..1bb14d5 100755
--- a/modules/conf/confmaker.pl
+++ b/modules/conf/confmaker.pl
@@ -65,14 +65,15 @@ $nextarg = 1;
if (@ARGV[$nextarg] eq "-o") {
$outputFileName = "@ARGV[$nextarg+1]";
$nextarg += 2;
- open (OUTF, , ">:utf8", "$outputFileName") or die "Could not open file $outputFileName for writing.";
+ open (OUTF, ">:utf8", "$outputFileName") or die "Could not open file $outputFileName for writing.";
select(OUTF)
}
if (@ARGV[$nextarg] eq "-i") {
$inputFileName = "@ARGV[$nextarg+1]";
$nextarg += 2;
- @inputFile=`cat $inputFileName`;
+ open INF, "<:utf8","$inputFileName" ;
+ @inputfile = <INF>;
}
if (@ARGV[$nextarg] eq "-m") {