utf8 issue with substitution pattern



I don't know how to solve this. The program I have runs fine under plain
old perl. However, perl2exe makes it clear that I need to manually include
the utf8 stuff.

I'm forced to do:

use Encode::Unicode;
require "utf8_heavy.pl";
require "unicore/lib/SpacePer.pl";
require "unicore/To/Lower.pl";
require "unicore/To/Upper.pl";
require "unicore/To/Fold.pl";
require "unicore/lib/Digit.pl";
require "unicore/lib/Word.pl";
require utf8;
no utf8;

However, while the program runs fine under the interpreter directly, using
perl2exe results in the following not working, with a bunch of errors like:

Malformed UTF-8 character (overflow at 0xffbc2000, byte 0x00, after start
byte 0xff) in substitution (s///) at /root/LightPage/LP line 627, <> line
202.
Malformed UTF-8 character (overflow at 0xffbc2000, byte 0x00, after start
byte 0xff) in substitution (s///) at /root/LightPage/LP line 627, <> line
202.
etc...

My function is the following, and it's the substitution line that generates
those issues:

##### Strip binary characters.
sub strip_binary {
foreach my $one (@file_lines) {
$one =~ s/[\000-\037\177-\377]//g;
}
return;
}
#####

Can anyone tell me how to fix this issue? What's even stranger, the same
binary works fine on one linux system (Cobalt Linux) and -not- on RHEL3.

Any help is vastly appreciated... Thanks!

--
Vorxion - Founder of the knocking-shop of the mind.

"You have it, you sell it, you've still got it--what's the difference?"
--Diana Trent, "Waiting for God", on why a modelling agency is really a
knocking-shop. Applied by me to the field of consulting. :)

The Sci-Fi fan's solution to debt: Reverse the polarity on your charge card.
.



Relevant Pages

  • [TOOL] Perl2Exe Reverse Perl Extractor
    ... Perl2exe version 5.03 ... converting perl scripts to exe files. ... alone programs in perl that do not require the perl interpreter. ... int k,i,j; ...
    (Securiteam)
  • RE: Perl2exe (U)
    ... Active State Perl Development kit. ... I have even bought 'perl2exe' from indigostar. ... > To: Manish U ... >> intended recipient, or the authorized agent thereof, you are hereby ...
    (perl.beginners)
  • RE: perl2exe
    ... Subject: perl2exe ... I am working without any install of perl8.8 or 10. ... Perl 5.10. ... I thought I read somewhere that generating executable Perl ...
    (perl.beginners)
  • Re: perl2exe
    ... I don't understand why perl2exe of 2001 is not compatible because only ... modules change in perl 5.0 to 5.10. ... You should install Perl 5.10 on your PC as well as the ...  I thought I read  somewhere that generating executable Perl ...
    (perl.beginners)
  • Re: making exe of a perl script
    ... I have written a perl script and i want this script to be used by ... But they will have to install active perl to make that work. ... Unless you explicitely tell perl2exe about this, ... Personally I bundle up a small miniperl distribution using ...
    (comp.lang.perl.misc)