graehl / yaml-cpp-old

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

String 'null' is not quoted #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Fixed, rd3fcc4c543e3dd9568e3773f154df3b825a19aff.

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