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

When using --raw-input jq splits lines longer than 4095 characters #1173

Closed
Alexis-D opened this issue Jun 24, 2016 · 1 comment
Closed

When using --raw-input jq splits lines longer than 4095 characters #1173

Alexis-D opened this issue Jun 24, 2016 · 1 comment

Comments

@Alexis-D
Copy link

Hey,

It looks like long inputs lines are getting split when using -R, this can reproduced with jq-1.4 like this:

$ python -c 'import sys; sys.stdout.write("x" * 4095)' | jq -R . | wc -l
1
$ python -c 'import sys; sys.stdout.write("x" * 4096)' | jq -R . | wc -l
2

Notice how jq is fed a single line of input in both cases, but in the second case jq parses the input as two distinct lines.

@pkoppstein
Copy link
Contributor

This is an old bug that was rectified long ago. In particular, it does not exist in the current "official" version (jq 1.5) or the current version on "master".

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

No branches or pull requests

3 participants