Skip Menu |

This queue is for tickets about the Wiki-Toolkit CPAN distribution.

Report information
The Basics
Id: 26761
Status: resolved
Priority: 0/
Queue: Wiki-Toolkit

People
Owner: Nobody in particular
Requestors: viorels [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.73
Fixed in: (no value)



Subject: undefined charset if dbh is passed to new storage
Wiki::Toolkit::Store::Pg->new( dbh => $dbh, charset => 'utf-8' ); In the above code, if you either specify charset or not it is ignored and undefined so charset_encode/charset_decode functions don't have anything to work with. This is the chage i've made to Wiki::Toolkit::Store::Database version 0.27 as a quick fix. I'm not sure if this is the best fix though. if ( $args{dbh} ) { $self->{_dbh} = $args{dbh}; $self->{_external_dbh} = 1; # don't disconnect at DESTROY time + $self->{_charset} = $args{charset} || "iso-8859-1"; } else { die "Must supply a dbname" unless defined $args{dbname}; Thank you.
From: DOM [...] cpan.org
We're tracking this issue at http://www.wiki-toolkit.org/ticket/24 Thanks, Dominic.