From: Ross Bamford Date: 2006-06-08T02:47:33+09:00 Subject: Re: Possible YAML bug with quoted symbols? On Thu, 2006-06-08 at 02:21 +0900, ara.t.howard@noaa.gov wrote: > On Wed, 7 Jun 2006, Dave Baldwin wrote: > > > If I have a quoted symbol, i.e. :'some symbol' then when I dump the YAML for > > it and then load the results I don't get back the symbol I put in, but get an > > extra set of escaped quotes. The following irb session shows this: > > i don't see the problem: > > > harp:~ > ruby -r yaml -e' qs = YAML.load(YAML.dump(:"foo bar")); p qs; p qs.class; p VERSION ' > :"foo bar" > Symbol > "1.8.4" > > > you are just confusing yourself with irb/inspect That's wierd. I've seen this problem before (I switched to Marshal in the end), and I still seem to get it now. $ ruby -v -ryaml -e 'p YAML::Syck::VERSION' ruby 1.8.4 (2005-12-24) [i686-linux] "0.60" $ ruby -r yaml -e' qs = YAML.load(YAML.dump(:"foo bar")); p qs; p qs.class ' :"\"foo bar\"" Symbol -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk