Bug#489200: libyaml-perl fails to load back list of hashes, when hash key is quoted
Myhailo Danylenko
isbear at ukrpost.net
Thu Jul 3 22:14:15 UTC 2008
Package: libyaml-perl
Version: 0.66-1
Severity: normal
How to reproduce:
Run this script:
[isbear:~] cat yt2.pl
#! /usr/bin/perl
use strict;
use warnings;
use YAML;
#{ no warnings; $YAML::CompressSeries = 1 };
my $a = [
{
'a ' => 'b'
}
];
my $dump = Dump $a;
print "---- start ----\n$dump\n---- end ----\n";
my $b = Load $dump;
# The End.
Error message (this one is from amd64 machine, on i386 message it is
exactly the same):
[isbear:~] ./yt2.pl
---- start ----
---
- 'a ': b
---- end ----
YAML Error: Couldn't parse single line value
Code: YAML_PARSE_ERR_SINGLE_LINE
Line: 2
Document: 1
at /usr/share/perl5/YAML.pm line 33
The problem can be workarounded by not using CompressSeries feature,
however that feature is enabled by default, so, without extra
configuration module as it is will not work in such circumstances.
Reportbug output:
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core)
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libyaml-perl depends on:
ii perl 5.10.0-11 Larry Wall's Practical
Extraction
libyaml-perl recommends no packages.
-- no debconf information
--
Михайло Даниленко
-------------------------------
jabber: <isbear at jabber.kiev.ua>
icq: 200352743
More information about the pkg-perl-maintainers
mailing list