Subject: | PAR including File::BOM fails |
I just used File::BOM and it failed in a PAR pp executable, although the
script worked fine in traditional Perl. I worked around it by forcing an
explicit "use Encode::Unicode" which seemed to work fine. I would have
expected this to be picked up automatically, but seems to not be counted
as an automatic include. It may really be a PAR pp problem, but if "use
Encode::Unicode" is always needed, it might be worth adding to
File::BOM. Thanks for such a cool and essential module, by the way, it
saved a lot of my Windows code!!
Error message:
Unknown encoding 'UTF-16BE' at File/BOM.pm line 186
Compilation failed in require at script/importdb.pl line 87.
BEGIN failed--compilation aborted at script/importdb.pl line 87.
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_IMPLICIT_SYS PERL_MALLOC_WRAP
PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_SITECUSTOMIZE
Locally applied patches:
ActivePerl Build 822 [280952]
Iin_load_module moved for compatibility with build 806
PerlEx support in CGI::Carp
Less verbose ExtUtils::Install and Pod::Find
Patch for CAN-2005-0448 from Debian with modifications
Rearrange @INC so that 'site' is searched before 'perl'
Partly reverted 24733 to preserve binary compatibility
MAINT31223 plus additional changes
31490 Problem bootstraping Win32CORE
31324 Fix DynaLoader::dl_findfile() to locate .so files again
31214 Win32::GetLastError fails when first called
31211 Restore Windows NT support
31188 Problem killing a pseudo-forked child on Win32
29732 ANSIfy the PATH environment variable on Windows
27527,29868 win32_async_check() can loop indefinitely
26970 Make Passive mode the default for Net::FTP
26379 Fix alarm() for Windows 2003
24699 ICMP_UNREACHABLE handling in Net::Ping
Built under MSWin32
Compiled at Jul 31 2007 19:34:48
@INC:
C:/Perl/site/lib
C:/Perl/lib
.