Skip Menu |

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

Report information
The Basics
Id: 64433
Status: new
Priority: 0/
Queue: Locale-Object

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.78
Fixed in: (no value)



Subject: cannot find path to DB under Windows
FATAL ERROR: The Locale::Object database was not in '/strawberry/perl/site/lib/Locale/Object/', where I expected it. Please check your installation. at C:/strawberry/perl/site/lib/Locale/Object/Continent.pm line 11 Volume is missing in path. Patch for Locale::Object::DB is attached. Not tested on other OS'es. -- Alexandr Ciornii, http://chorny.net
Subject: DB.pm.patch
--- DB.pm.dist 2011-01-04 01:00:38.343750000 +0200 +++ DB.pm 2011-01-04 01:00:55.343750000 +0200 @@ -10,8 +10,8 @@ our $VERSION = '0.78'; # The database should be in the same directory as this file. Get the location. -my (undef, $path) = File::Spec->splitpath(__FILE__); -my $db = $path . 'locale.db'; +my ($volume, $path) = File::Spec->splitpath(__FILE__); +my $db = $volume . $path . 'locale.db'; # Check it's a binary file in the right location. croak "FATAL ERROR: The Locale::Object database was not in '$path', where I expected it. Please check your installation." unless -B $db;