Skip Menu |

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)



Subject: relative paths to lang files fail
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 $@;
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