Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML CPAN distribution.

Report information
The Basics
Id: 13510
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.39
Fixed in: 1.20



Subject: Another roundtrip fails
Another Dump/Load roundtrip fails. See the attached file. Regards, Slaven
#!/usr/bin/perl -w use YAML; $yml = YAML::Dump([{'RR1 (Schloßplatz - Wannsee)'=> 1, 'mäßiges Kopfsteinpflaster (Teilstrecke)' => 1}, undef, ]); YAML::Load($yml); __END__
Subject: Cannot parse hash keys with "space dash space"
Hello Ingy, the following perl snippet fails with the error message YAML Error: Couldn't parse single line value Code: YAML_PARSE_ERR_SINGLE_LINE Line: 2 Document: 1 at /usr/perl5.8.8@28213/lib/site_perl/5.8.8/YAML.pm line 33 #!/usr/bin/perl -w use YAML 0.62; my $data = [{'A - B'=>1}]; YAML::Load(YAML::Dump($data)); __END__ Reproducable on Linux 2.4 with perl 5.8.0 and perl 5.8.8 and FreeBSD 4.11 with perl 5.8.0. Regards, Slaven
Please see the patch I attached to bug ticket #2957. I think this is the same bug. --Larry Gilbert
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/48 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
fixed in 1.20