ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:23045] [Bug #1321] syck does not escape a plain scalar that starts with `
@ 2009-03-28 20:32 Richard Brown
  0 siblings, 0 replies; only message in thread
From: Richard Brown @ 2009-03-28 20:32 UTC (permalink / raw
  To: ruby-core

Bug #1321: syck does not escape a plain scalar that starts with `
http://redmine.ruby-lang.org/issues/show/1321

Author: Richard Brown
Status: Open, Priority: Normal
ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

According to the YAML-1.0 spec ` is a reserved indicator, and plain scalars cannot start with a reserved indicator. For other indicators syck emits a double quoted scalar instead

Current Behaviour:
ruby -ryaml -e "puts '@'.to_yaml"
--- "@"
ruby -ryaml -e "puts '\`'.to_yaml"
--- `
Intended Behaviour:
ruby -ryaml -e "puts '@'.to_yaml"
--- "@"
ruby -ryaml -e "puts '\`'.to_yaml"
--- "`"

This patch applies to trunk, the 1_8 and 1_8_7 and 1_8_6 branches


----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-28 20:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 20:32 [ruby-core:23045] [Bug #1321] syck does not escape a plain scalar that starts with ` Richard Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).