Project

General

Profile

Actions

Feature #6910

closed

Loading syck's broken yaml with psych

Added by naruse (Yui NARUSE) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Target version:
[ruby-core:47287]

Description

You know, syck outputs wrong yaml.
For example, syck works as following:

ruby-1.9.2 > ["\u3042",Time.at(0).to_s].to_yaml
=> "--- \n- "\xE3\x81\x82"\n- 1970-01-01 09:00:00 +09:00\n"

It should be

ruby-1.9.3 > ["\u3042",Time.at(0).to_s].to_yaml
=> "---\n- あ\n- '1970-01-01 09:00:00 +0900'\n"

syck's dump of Unicode string is interpreted as "\u00E3\u0081\u0082".
syck's dump of Time like string is interpreted as Time.
It is hard to migrate old data to new and correct data, so it is useful if psych has a such compatibility option.


Files

noname (500 Bytes) noname Anonymous, 08/23/2012 01:23 PM
noname (500 Bytes) noname Anonymous, 08/24/2012 01:23 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0