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

Why maximum 4000 characters output with xsel -b ? #13

Closed
cirosantilli opened this issue Jul 25, 2015 · 2 comments
Closed

Why maximum 4000 characters output with xsel -b ? #13

cirosantilli opened this issue Jul 25, 2015 · 2 comments

Comments

@cirosantilli
Copy link

When I compile from source at https://github.com/kfish/xsel/tree/9674445d8ea9f60f4d1a154be6fdb12e7af8f0c6 and do:

seq 10000  | ./xsel -b
./xsel -b | wc

The output contains only the first 4k characters.

On the other hand, if I do ctrl + v on GUI apps like Firefox, I get all the characters.

Why this limitation? I saw the 4000 constant in the source:

max_req = 4000;

but wasn't patient enough to deduce the rest :-)

Why not increase that limit a bit more?

Ubuntu 14.04.

@ebiggers
Copy link
Contributor

ebiggers commented Mar 6, 2016

I posted a fix for this: #16. I'm not sure this project has an active maintainer though.

cstrahan added a commit to cstrahan/nixpkgs that referenced this issue Sep 21, 2016
The last xsel release was in 2008. Since then, a number of bugs have
been fixed. For example, pasting a large chunk of text (>4000 chars)
into chrome would cause the current tab to hang indefinitely.

A couple examples in the wild:

kfish/xsel#14
kfish/xsel#13
kfish/xsel#16
https://bugs.chromium.org/p/chromium/issues/detail?id=515401
electron/electron#3116
neovim/neovim#4719
acowley pushed a commit to acowley/nixpkgs that referenced this issue Sep 29, 2016
The last xsel release was in 2008. Since then, a number of bugs have
been fixed. For example, pasting a large chunk of text (>4000 chars)
into chrome would cause the current tab to hang indefinitely.

A couple examples in the wild:

kfish/xsel#14
kfish/xsel#13
kfish/xsel#16
https://bugs.chromium.org/p/chromium/issues/detail?id=515401
electron/electron#3116
neovim/neovim#4719
@kfish
Copy link
Owner

kfish commented Aug 24, 2017

This was fixed by #16

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