Tcl Library Source Code

View Ticket
Login
Ticket UUID: f11610e8719318867d9bf08ffdfd6252dc70560b
Title: problem with yaml and huddle - conversion between both
Type: Bug Version: tcllib 1.18 yaml 0.3.9 huddle 0.2
Submitter: aku Created on: 2020-01-20 00:56:18
Subsystem: yaml Assigned To: aku
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2021-03-22 16:18:15
Resolution: Duplicate Closed By: aku
    Closed on: 2021-03-22 16:18:15
Description:
User "Steve Litt" showed up on the chat, and offered 3 pastes
5306 to 5308 

It turns out, that the  yaml::huddle2yaml  fails to convert
back a huddle string that was created from yaml::yaml2huddle

The huddle-string obtained from yaml was:
HUDDLE {!!map {fname {!!str Steve} lname {!!str Litt}}}
same for all checked versions(see below)

but on converting back to yaml, the newer versions just 
prepended a line of three dashes to the huddle-string.

Versions:
tcllib1.17  yaml 0.3.7   huddle 0.1.5   worked
tcllib1.18  yaml 0.3.9   huddle 0.2     failed
tcllib1.19  yaml 0.4.1   huddle 0.3     failed

Unfortunately huddle changed a big lot between 0.1.5 and 0.2
so I gave up trying to spot the problem from a side-to-side diff
of the two huddle.tcl's.
User Comments: aku added on 2021-03-22 16:18:15:

Closing as a duplicate of [d74e6561a29ca0dca4d6198a46aa9474e20e34ad]


jlichy added on 2020-03-31 21:06:32:
This is a symptom of same problem addressed in:
d74e6561a29ca0dca4d6198a46aa9474e20e34ad

Which has a fix proposed (that seems to work)

huddle type

Has changed significantly -- returns different values

aku added on 2020-01-20 01:01:58:
Paste entries attached.

Attachments: