$::HaveTemp = ($@ eq "");
eval { require Module::CoreList; };
$::HaveCoreList = ($@ eq "");
- eval { require encoding; };
- $::Have_get_locale_encoding = ($@ eq "" && defined &encoding::_get_locale_encoding);
};
my $Version = "1.40";
my $config_tag2 = "$perl_version - $Config{cf_time}";
-my $input_encoding = $::Have_get_locale_encoding ? encoding::_get_locale_encoding() : '';
-
Init();
if ($opt{h}) { Help(); exit; }
if ($body) {
print REP $body;
} elsif ($usefile) {
- open(F, "<:$input_encoding", $file)
+ open(F, '<:raw', $file)
or die "Unable to read report file from '$file': $!\n";
while (<F>) {
print REP $_
my $body_start = <<"BODY_START";
This is a multi-part message in MIME format.
--$mime_boundary
-Content-Type: text/plain; charset=UTF-8; format=fixed
+Content-Type: text/plain; format=fixed
Content-Transfer-Encoding: 8bit
BODY_START