Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Locale-Maketext-Lexicon CPAN distribution.

Report information
The Basics
Id: 14999
Status: resolved
Priority: 0/
Queue: Locale-Maketext-Lexicon

People
Owner: Nobody in particular
Requestors: bpphillips+rt-cpan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.49
Fixed in: (no value)

Attachments
locale-maketext-lexicon.patch



Subject: relative paths to lang files fail
Download (untitled) / with headers
text/plain 461b
In Short: Version 0.49 added an eval around the following: $class->lexicon_get($src, scalar caller, $lang); This is great except that eval adds another frame to the call stack. It needs to be changed to the following: $class->lexicon_get($src, scalar caller(1), $lang); This problem causes relative paths to language files to not work. Rather than searching in My/Package/$path (for a module called My::Package) it searches in Locale/Maketext/Lexicon/$path.
/lib/Locale/Maketext/Lexicon.pm --- Locale-Maketext-Lexicon-0.49/lib/Locale/Maketext/Lexicon.pm Wed Apr 13 11:05:00 2005 +++ Locale-Maketext-Lexicon-0.49-new/lib/Locale/Maketext/Lexicon.pm Mon Oct 10 09:58:19 2005 @@ -275,7 +275,7 @@ local $@; my @content = eval { - $class->lexicon_get($src, scalar caller, $lang); + $class->lexicon_get($src, scalar caller(1), $lang); }; next if $@ and $@ eq 'next'; die $@ if $@;
Download (untitled) / with headers
text/plain 619b
On Mon Oct 10 11:13:23 2005, guest wrote: Show quoted text
> In Short: > Version 0.49 added an eval around the following: > $class->lexicon_get($src, scalar caller, $lang); > > This is great except that eval adds another frame to the call stack. > It needs to be changed to the following: > $class->lexicon_get($src, scalar caller(1), $lang); > > This problem causes relative paths to language files to not work. > Rather than searching in My/Package/$path (for a module called > My::Package) it searches in Locale/Maketext/Lexicon/$path.
Thanks for reporting this bug... 3 years ago! This has finally been resolved in version 0.76


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.