Skip to content
New issue

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

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

Already on GitHub? # to your account

"writing output failed" with non ASCII input #1671

Closed
wants to merge 1 commit into from
Closed

"writing output failed" with non ASCII input #1671

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 28, 2018

Using this file:

$ cat example.json
{
  "alfa": "Alt 173",
  "bravo": "hello¡"
}

Gives this result:

$ jq -r .bravo example.json
hello¡
Error: writing output failed: No such file or directory

Note if you remove -r, it works as expected:

$ jq .bravo example.json
"hello¡"

Looks like the problem is an fwrite call that was not replaced with the
portable version.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 84.947% when pulling 0b2a64c on svnpenn:patch-1 into 90bc29c on stedolan:master.

@nicowilliams
Copy link
Contributor

Thanks for the report!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants