Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String 'null' is not quoted #247

Closed
GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments
Closed

String 'null' is not quoted #247

GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

  YAML::Emitter emitter;
  emitter << YAML::BeginMap
          << YAML::Key << "mykey"
          << YAML::Value << "null"
          << YAML::EndMap;

What is the expected output? What do you see instead?

Expected output would be {mykey: 'null'}
Buggy output I'm seeing: {mykey: null}

The string "null" in the output should be quoted. Otherwise it is interpreted 
as the YAML null value. 

What version of the product are you using? On what operating system?

yaml-cpp 0.5.1


Original issue reported on code.google.com by markus.d...@gmail.com on 17 May 2014 at 2:34

@GoogleCodeExporter
Copy link
Author

Original comment by jbe...@gmail.com on 19 May 2014 at 1:23

  • Changed state: Accepted
  • Added labels: Component-Core
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Fixed, rd3fcc4c543e3dd9568e3773f154df3b825a19aff.

Original comment by jbe...@gmail.com on 24 Jan 2015 at 10:08

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant