Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 40226
Status: new
Priority: 0/
Queue: YAML-LibYAML

People
Owner: Nobody in particular
Requestors: adam_lounds [...] hotmail.com
Cc:
AdminCc:

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



Subject: No support for language-independent types
Support for !!omap/!!map/!!pairs/!!bool etc is missing and generates an error (bad tag found for scalar: 'tag:yaml.org,2002:bool' etc) A dumb patch can be done at line 297 of perl_libyaml.c, which is only slightly cleverer than s/!!omap/!Data::Omap/g in that it only changes actual tags: ... if (tag && strEQ(tag, TAG_PERL_PREFIX "array")) tag = NULL; + if (tag && strEQ(tag, "tag:yaml.org,2002:omap")) + tag = "!Data::Omap"; + if (tag && strEQ(tag, "tag:yaml.org,2002:pairs")) + tag = "!Data::Pairs"; if (tag) { ... but that doesn't fix writing the yaml, only reading it, and I'm sure the code could be better (and Data::Omap is sub-optimal :-)) I'm also sure that support will fall out from Ingy's work on the PyYAML port :-)