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

PrettyWriter<FileWriterStream> on simple scalar value does not work #1336

Closed
lelit opened this issue Jul 31, 2018 · 1 comment
Closed

PrettyWriter<FileWriterStream> on simple scalar value does not work #1336

lelit opened this issue Jul 31, 2018 · 1 comment
Labels
Milestone

Comments

@lelit
Copy link
Contributor

lelit commented Jul 31, 2018

Hi, I received a bug report on python-rapidjson that I was able to easily replicate on RapidJSON itself.

Apparently when using a PrettyWriter<FileWriterStream> with a single scalar value as input, nothing is emitted on output.

Consider:

$ cd example/pretty
$ make pretty
g++     pretty.cpp   -o pretty
$ echo '[10]' | ./pretty
[
    10
]
$ echo '10' | ./pretty
$

Thanks&bye, lele.

@miloyip miloyip added the bug label Aug 1, 2018
@miloyip miloyip added this to the v1.2 Beta milestone Aug 1, 2018
@miloyip
Copy link
Collaborator

miloyip commented Aug 1, 2018

Successfully reproduced. Thank you for your report.

lelit added a commit to lelit/rapidjson that referenced this issue Aug 3, 2018
…root-level scalar value

This attempts to fix issue Tencent#1336.
lelit added a commit to lelit/rapidjson that referenced this issue Aug 3, 2018
lelit added a commit to lelit/rapidjson that referenced this issue Aug 5, 2018
@miloyip miloyip closed this as completed Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants