Skip Menu |
 

This queue is for tickets about the Data-YAML CPAN distribution.

Report information
The Basics
Id: 46710
Status: new
Priority: 0/
Queue: Data-YAML

People
Owner: Nobody in particular
Requestors: mail [...] caugustin.de
Cc:
AdminCc:

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



MIME-Version: 1.0 (Apple Message framework v935.3)
X-Spam-Status: No, hits=0.0 required=8.0 tests=
X-Mailer: Apple Mail (2.935.3)
X-Trace: 507c636d6140736e6166752e64657c37392e3139332e3139392e37337c314d4444 67552d3030303058322d38657c31323434333633303934
Reply-To: Christian Augustin <mail [...] caugustin.de>
content-type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
Message-ID: <6A3E3D46-5379-40A0-9073-ACEFB69F5D27 [...] snafu.de>
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id BE1B74D801B for <bug-data-yaml [...] rt.cpan.org>; Sun, 7 Jun 2009 04:25:07 -0400 (EDT)
Received: (qmail 21675 invoked by uid 103); 7 Jun 2009 08:25:07 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 7 Jun 2009 08:25:07 -0000
Received: from sour.ops.eusc.inter.net (HELO sour.ops.eusc.inter.net) (84.23.254.154) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Sun, 07 Jun 2009 01:25:00 -0700
Received: from sour.ops.eusc.inter.net ([10.154.10.19] helo=localhost) by sour.ops.eusc.inter.net with esmtpsa (Exim 4.69) id 1MDDgU-0000X2-8e for bug-data-yaml [...] rt.cpan.org; Sun, 07 Jun 2009 10:24:54 +0200
Delivered-To: cpan-bug+data-yaml [...] diesel.bestpractical.com
Subject: Data::YAML 0.0.6 Reader Bug with single quoted hash keys
Return-Path: <cma [...] snafu.de>
X-Original-To: bug-data-yaml [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Sun, 7 Jun 2009 10:24:52 +0200
X-Spam-Level: *
To: bug-data-yaml [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Christian Augustin <cma [...] snafu.de>
X-RT-Original-Encoding: US-ASCII
Content-Length: 802
Download (untitled) / with headers
text/plain 802b
Hi, I gave Data::YAML a try and stumbled about a problem with single quoted strings as hash keys (produced by Data::YAML::Writer 0.0.6) in Data::YAML::Reader 0.0.6. Looks like a problem with the $HASH_LINE RegExp using only $QQ_STRING. By introducing $SQ_STRING it works for me (but perhaps not for all use cases): my $QQ_STRING = qr{ " (?: \\. | [^"] )* " }x; my $SQ_STRING = qr{ ' (?: '' | [^'] )* ' }x; my $HASH_LINE = qr{ ^ ( $SQ_STRING | $QQ_STRING | \S+ ) \s* : (?: \s + (.+?) \s* )? $ }x; The YAML written by Data::YAML::Writer that caused the problem looked similiar to this (to prepare a test case): --- 'First key': - 140 - 0 - 0 - 0 - EUR 'Second key': - 137 - 20000 - 21060 - 33000 - EUR ... Kind regards -- Christian Augustin mail@caugustin.de


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.