Skip Menu |

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

Report information
The Basics
Id: 54780
Status: resolved
Priority: 0/
Queue: YAML-Syck

Owner: Nobody in particular
Requestors: johann.Werner [...]

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

Subject: Wrong loading of YAML with double quoted style
Date: Fri, 19 Feb 2010 00:31:58 +0100
To: bug-YAML-Syck [...]
From: Johann Werner <johann.Werner [...]>
Download (untitled) / with headers
text/plain 645b
Loading a YAML string that has a block with double quoted style returns a wrong result. Using this valid YAML input: --- "<tag>content\ \ string</tag>\n\ <anothertag>other\ \ content</anothertag>\n\ \ \n<i>new</i>\n" YAML::Syck::Load returns the string: <tag>content\ string</tag> <anothertag>other\ content</anothertag> \ <i>new</i> instead of the correct output of <tag>content string</tag> <anothertag>other content</anothertag> <i>new</i> In this example three backslashes are remaining in the ouput. A quick test with YAML::XS results in a correct output. My environment uses: Perl v5.10.0 OS X 10.6.2 YAML::Syck 1.07
(This is a form-reply that isn't specific to your particular report) YAML::Syck has just acquired one new maintainer (me), it still doesn't have anyone that *cares* about it. But I'm willing to help solve your report & release a new version with the fix if it's easy for me. It now has a Git repository at: If your report is a patch that fixes a problem, great. Please remake the patch against Git by forking that repo and sending me a pull request on GitHub (or an update to this bug if you prefer git-format-patch(1) or some other repo provider..). Make sure to include a test for what you fixed. If your report is some code that fails (and you have a testcase for it) a patch against the test suite to demonstrate that failure would be very useful. It's OK if the test crashes and burns, see Test::More's docs for how to make TODO tests that fail now, but shouldn't. Even if it segfaults perl C<system $^X => qw/ -Mblib -MYAML::Syck .../> or something like that and checking the return value will do.
Download (untitled) / with headers
text/plain 116b
TODO test added via commit 5aeb663cc4c71b334066f5435bcddd2e33274877 I lack the time to find the bug at the moment.
Ticket migrated to github as

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

Please report any issues with to