Bugs: Browse | Submit New | Admin

[#6819] YAML loses data

Date:
2006-11-22 06:19
Priority:
3
Submitted By:
Brendan Inglese (escii)
Assigned To:
Akinori MUSHA (knu)
Category:
DB / File Formats
State:
Open
Platform:
 
Summary:
YAML loses data

Detailed description
I have come accross a bug in 1.8.5 ( and some fellow hackers in freenode/#ruby-lang replicated the same problem on 1.8.5
) when serializing
data with YAML, If there is a lone newline char, it will be removed in 
the process of dumping and loading. Here is a example of it in action:

>> YAML::load(YAML::dump({:bug => "\n"}))
=> {:bug=>""}

Hopefully the ruby-core team is able to replicate this problem and
resolve it.

Regards, Brendan Inglese.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tonone2007-06-12 01:20zenspider
category_idMisc / Other Standard Library2007-05-29 17:42zenspider