Skip Menu |

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

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

People
Owner: TODDR [...] cpan.org
Requestors: nelhage [...] bestpractical.com
Cc:
AdminCc:

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



Subject: Escaping of single quotes
Date: Thu, 20 Jul 2006 13:46:49 -0400 (EDT)
To: bug-YAML-Syck [...] rt.cpan.org
From: Nelson Elhage <nelhage [...] bestpractical.com>
If $JSON::Syck::SingleQuote is set to one, JSON::Syck::Dump doesn't properly escape single quotes in its output Show quoted text
> perl -MJSON::Syck
$JSON::Syck::SingleQuote=1; print JSON::Syck::Dump("foo'bar"); 'foo'bar' I'm using YAML::Syck v0.62 - Nelson Elhage
On Thu Jul 20 13:47:11 2006, nelhage@bestpractical.com wrote: Show quoted text
> I'm using YAML::Syck v0.62
and is this still a problem now? (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: http://github.com/avar/YAML-Syck 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.
I see a test for just this in 2-scalars.t I don't think this is still an issue and should be closed.