in reply to re + utf8 problem

Try one of more of:

#perl2exe_include "utf8.pm" use Encode::Unicode; use bytes;

cheers

tachyon

Replies are listed 'Best First'.
Re^2: re + utf8 problem
by maard (Pilgrim) on Sep 27, 2004 at 10:59 UTC
    When I include utf8 either via "use" or via #perl2exe_include, I get lots of following warnings:
    Use of uninitialized value in pattern match (m//) at PERL2EXE_STORAGE/ +utf8_heavy.pl line 185, <$fh> line 1. Use of uninitialized value in scalar assignment at PERL2EXE_STORAGE/ut +f8_heavy.pl line 201, <$fh> line 1. ... Use of uninitialized value in scalar assignment at PERL2EXE_STORAGE/ut +f8_heavy.pl line 317, <$fh> line 1. Use of uninitialized value in pattern match (m//) at PERL2EXE_STORAGE/ +utf8_heavy.pl line 318, <$fh> line 1.
    and finally HTML::Template dies with:
    panic: swash_fetch at PERL2EXE_STORAGE/HTML/Template.pm line 1910, <$f +h> line 1.
    , so probably including utf8 in script isn't a good idea?
Re^2: re + utf8 problem
by maard (Pilgrim) on Sep 27, 2004 at 10:20 UTC
    Hello.

    Thanks for reply. Yes, I "use" lots of modules in my script, some of which include:

    use bytes; use Encode::Byte; use Encode::Unicode;

    Without "use bytes" compiled binary doesn't work at all. Everythins works without errors except pattern matches in HTML::Template module, when script is in perl's internal encoding of scalar.
    So maybe there's some other detail whick I didn't notice? Or probably some extracts from my script could help? I already told, I "use" some modules, which perl autoloads itself when not compiled. Maybe something else?