Debian Bug report logs - #305526
libyaml-perl: Bug in either code or pod docs

version graph

Package: libyaml-perl; Maintainer for libyaml-perl is Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>; Source for libyaml-perl is src:libyaml-perl (PTS, buildd, popcon).

Reported by: Stephen Quinney <stephen@jadevine.org.uk>

Date: Wed, 20 Apr 2005 14:48:28 UTC

Severity: normal

Found in version 0.38-2

Done: Florian Ragwitz <rafl@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Chip Salzenberg <chip@debian.org>:
Bug#305526; Package libyaml-perl. (full text, mbox, link).


Acknowledgement sent to Stephen Quinney <stephen@jadevine.org.uk>:
New Bug report received and forwarded. Copy sent to Chip Salzenberg <chip@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Stephen Quinney <stephen@jadevine.org.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libyaml-perl: Bug in either code or pod docs
Date: Wed, 20 Apr 2005 15:36:11 +0100
Package: libyaml-perl
Version: 0.38-2
Severity: normal

According to the manpage:

    use YAML qw(Dump Bless);
    $hash = {apple => 'good', banana => 'bad', cauliflower => 'ugly'};
    print Dump $hash;
    Bless($hash)->keys(['banana', 'apple']);
    print Dump $hash;

produces:

    --- #YAML:1.0
    apple: good
    banana: bad
    cauliflower: ugly
    --- #YAML:1.0
    banana: bad
    apple: good


but in fact the code does not do this, it produces instead:

---
apple: good
banana: bad
cauliflower: ugly
---
banana: bad
apple: good

I certainly expected the module to add the version strings (as did
some tests in a different module that I was building. It seems that at
some point this behaviour has changed. Looking at the code I see, on
line 254 of YAML.pm, in the subroutine _emit_header():

    if ($o->{UseVersion}) {
#         $o->{stream} .= " #YAML:1.0";
    }

I was slightly surprised at this but willing to accept it if this is
now considered correct behaviour. In that case it would be nice if the
pod for the module could be updated to reflect the fact.

Thanks,

Stephen Quinney

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libyaml-perl depends on:
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 

-- no debconf information



Reply sent to Florian Ragwitz <rafl@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Stephen Quinney <stephen@jadevine.org.uk>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 305526-done@bugs.debian.org (full text, mbox, reply):

From: Florian Ragwitz <rafl@debian.org>
To: 305526-done@bugs.debian.org
Subject: libyaml-perl: Bug in either code or pod docs
Date: Sat, 18 Feb 2006 17:55:21 +0100
[Message part 1 (text/plain, inline)]
Hello,

this bug is fixed in the latest version of yaml in Debian. The docs were
updated.


-Flo

-- 
BOFH excuse #88:
Boss' kid fucked up the machine
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 17 Jun 2007 20:23:14 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Feb 6 01:20:26 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.