kastnermario / yaml-cpp

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

YAML::Binary generate '\0', do not conform with Base64 #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use YAML::Binary(str, size) to get content, and save in a file
2. Use PyYaml to load it.
3. Error msg is "unacceptable character #x0000: special characters are not 
allowed"
4. open the file, find many \0 in binary.

What is the expected output? What do you see instead?
Binary should be encoded in the subset of 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=". but i see 
\0

What version of the product are you using? On what operating system?
Version: 0.2.6。 OS:linux 2.6.9_5-9-0-0

Please provide any additional information below.

Original issue reported on code.google.com by doublej...@gmail.com on 22 Jul 2011 at 1:49

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks! Do you have the binary data that will produce this output using 
yaml-cpp?

Original comment by jbe...@gmail.com on 23 Jul 2011 at 6:25

GoogleCodeExporter commented 8 years ago
I'm assuming this is the same problem as in issue 102, so I'm closing this. If 
you can still reproduce this, please reopen this issue (and post the binary 
data that can reproduce this issue!).

Thanks!

Original comment by jbe...@gmail.com on 6 Sep 2011 at 5:55