Sat May 29 06:44:07 2010: Request 56020 was acted upon. Transaction: Correspondence added by DJIBEL Queue: Module-ScanDeps Subject: PAR::Packer and PDF::API2 Unicode::UCD: failed to find UnicodeData.txt Broken in: 0.96 Severity: Normal Owner: Nobody Requestors: dji...@cpan.org Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56020 >
Dear, > Nope. Can you try the following (all on one line) > > pp -o ucd.exe -e "use Unicode::UCD qw(charinfo); my $i = > charinfo(0x42); print $i->{name};" > > running ucd.exe should print > > LATIN CAPITAL LETTER B It works well. > If it does work however, > the problem is perhaps in PDF::API2, please post a > minimal example script that demonstrates the problem. > > Cheers, Roderich > I found the problem. That is my program : #!/usr/bin/perl use strict; use warnings; use Carp; use PDF::API2; print "Hello"; PDF::API2 needs UnicodeData.txt. PDF::API2::Resource::Font::BdFont.pm line 45 calls Unicode::UCD in Unicode::UCD ( line 95), it searches the UnicodeData.txt in @Inc (@INC : C:/Perl/site/lib C:/Perl/lib .) and this file in Actiperl5.12 is in C:\Perl\lib\unicore. When we create a .exe with Perl. The INC changes and the program searches this file in temp directory (par-xxx). But I create my .exe using -C option that deletes this temp directory. That is why .exe didn't find the unicode file. Then, it is not a bug, but be careful when you use -C option (with pp) when you add modules that need txt files. Best regards, Djibril