diff options
author | Todd Rinaldo <toddr@cpanel.net> | 2010-07-06 01:28:00 -0400 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2010-07-06 01:30:30 -0400 |
commit | ace47d680c1383b41a705467fadb2c64e7f39c71 (patch) | |
tree | 2ab4754109d2da986b31f4a74142a027498088c3 /MANIFEST | |
parent | a519c2cf8a56d92061e00b715b65a73dd66692c6 (diff) | |
download | perl-ace47d680c1383b41a705467fadb2c64e7f39c71.tar.gz |
Locale::Maketext external cache support
This patch with tests provides RO support for lexicon hashes in
Locale::Maketext. This allows you to have GDBM language files owned by
root which can be accessed by non-root, but not altered.
If your lexicon is a tied hash the simple act of caching the compiled
value can be fatal.
For example a GDBM_File GDBM_READER tied hash will die with something
like:
gdbm store returned -1, errno 2, key "..." at ...
All you need to do is turn on caching outside of the lexicon hash itself
like so:
sub init {
my ($lh) = @_;
...
$lh->{'use_external_lex_cache'} = 1;
...
}
And then instead of storing the compiled value in the lexicon hash it
will store it in $lh->{'_external_lex_cache'}
I've verified that blead is the authoritative location for
Locale::Maketext source.
Signed-off-by: David Golden <dagolden@cpan.org>
Diffstat (limited to 'MANIFEST')
-rw-r--r-- | MANIFEST | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2730,6 +2730,7 @@ dist/Locale-Maketext/lib/Locale/Maketext.pod Locale::Maketext documentation dist/Locale-Maketext/lib/Locale/Maketext/TPJ13.pod Locale::Maketext documentation article dist/Locale-Maketext/README Locale::Maketext dist/Locale-Maketext/t/01_about_verbose.t See if Locale::Maketext works +dist/Locale-Maketext/t/04_use_external_lex_cache.t See if Locale::Maketext works dist/Locale-Maketext/t/10_make.t See if Locale::Maketext works dist/Locale-Maketext/t/20_get.t See if Locale::Maketext works dist/Locale-Maketext/t/30_local.t See if Locale::Maketext works |