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: 12770
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: crenz [...] web42.com
Cc:
AdminCc:

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



Subject: YAML crashes when tab used for indenting
Even in the latest version, 0.39, YAML fails when tabulator characters are used for indenting. This is expected since the YAML spec forbids this use of tab characters. However, there is no error message; YAML.pm just dies. Here's an example: perl -MYAML -e "YAML::Load(\"Testing:\n\t- Item1\n\")" fails with Died at U:\perl-lib\lib/YAML.pm line 1417. It should at least fail with a message like it does when there's no newline at the end: --- !perl/YAML::Error code: YAML_PARSE_ERR_NO_FINAL_NEWLINE msg: Stream does not end with newline character line: 0 ... at -e line 1
From: crenz [...] web24.com
Here's the ysh log file (the space in front of "Item1" is a tab): YAML.pm Version 0.39 Begin logging at Fri May 13 13:09:45 2005 Welcome to the YAML Test Shell. Type ':help' for more information. ysh > --- Show quoted text
yaml> Testing: yaml> Item1: 'Hallo' yaml> ...
YAML Load Failed: Died at U:\perl-lib\lib/YAML.pm line 1417, <FIN> line 4. ysh > :q
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/45 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.
was apparently fixed in 1.10