Bug#816634: libdbd-xbase-perl: Extend libdbd-xbase-perl to support W type columns (cheap patch)
Stefan Rink
stefan-contact-bts at dynamic.de
Thu Mar 3 15:35:21 UTC 2016
Package: libdbd-xbase-perl
Version: 1:1.05-1
Severity: normal
Tags: patch
Dear Maintainer,
this package misses a column type sometimes found in Visual FoxPro.
The Column Type is W. It stores a byte array, similar to the P column type.
Implementing the change in the patch attached solved my problem.
Without that change, the W column type just returns undef/null values upon dumping.
Please apply the attached patch. It justs inserts a single character into XBase.pm.
Regards,
Stefan
--- /usr/share/perl5/XBase.pm.orig 2013-05-26 00:01:23.000000000 +0200
+++ /usr/share/perl5/XBase.pm 2016-03-03 16:27:18.810901565 +0100
@@ -140,7 +140,7 @@
$rproc = sub { unpack 'd', reverse scalar shift; };
$wproc = sub { reverse scalar pack 'd', shift; };
}
- elsif ($type =~ /^[MGP]$/) { # memo fields
+ elsif ($type =~ /^[WMGP]$/) { # memo fields
my $memo = $self->{'memo'};
if (not defined $memo and not $self->{'openoptions'}{'ignorememo'}) {
$memo = $self->{'memo'} = $self->init_memo_field() or return;
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libdbd-xbase-perl depends on:
ii perl 5.20.2-3+deb8u3
libdbd-xbase-perl recommends no packages.
Versions of packages libdbd-xbase-perl suggests:
ii libdbi-perl 1.631-3+b1
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extend__libdbd-xbase-perl.patch
Type: text/x-diff
Size: 538 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160303/b9b21641/attachment.patch>
More information about the pkg-perl-maintainers
mailing list