Bugs: Browse | Submit New | Admin

[#2535] YAML loading of quoted Symbols broken in 1.8.3

Date:
2005-09-28 16:50
Priority:
3
Submitted By:
Aaron Schrab (aarons)
Assigned To:
Nobody (None)
Category:
Misc / Other Standard Library
State:
Closed
Platform:
 
Summary:
YAML loading of quoted Symbols broken in 1.8.3

Detailed description
When loading Symbols containing characters that need to be quoted (e.g. :"^foo"), the YAML library included
with ruby 1.8.3 includes the quotes in the Symbol.  This makes it impossible for such Symbols to correctly survive a
round trip through YAML.

The attached test script works properly with ruby 1.8.2, but with 1.8.3 the loaded symbol doesn't match the one that
was dumped.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-01-10 02:54
Sender: Hirokazu Yamamoto

I've commited. Thanks.
Date: 2005-09-28 16:54
Sender: Aaron Schrab

The attached patch, based on code from 1.8.2 seems to fix
this issue.

Attached Files:

Name Description Download
test.rb Test script Download
yaml.patch Patch Download

Changes:

Field Old Value Date By
status_idOpen2006-01-10 02:54ocean
resolution_idNone2006-01-10 02:54ocean
close_date2006-01-10 02:542006-01-10 02:54ocean
File Added301: yaml.patch2005-09-28 16:54aarons
File Added300: test.rb2005-09-28 16:50aarons