From: Ryan Davis Date: 2011-06-14T05:31:38+09:00 Subject: Re: Syck dies on multiline regex On Jun 13, 2011, at 12:34 , Josh Cheek wrote: > require 'yaml' > [YAML, Marshal].each do |serializer| > [/ab/x, /a > b/x].each do |regex| > begin > serializer.load(serializer.dump regex) > rescue > p $! > end > end > end > > # >> # > > > > This, in tandem with a few other things, cost me about four hours today (and > made me reconsider my decision to become a nonsmoker -.-). > > Is this a bug? If so, where should I report it? It is probably a bug. It _probably_ won't ever get fixed as nobody really maintains syck anymore (tho if you come up with a patch, that'd certainly help). Try psych if it is possible: 6371 % ruby19 -rpsych -ryaml -e 'p YAML.dump /a b/x' "--- !ruby/regexp \"/a\\n b/x\"\n"