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

Comments

Projects
None yet
3 participants
@cirosantilli

cirosantilli commented Jul 25, 2015

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

This comment has been minimized.

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 20, 2016

xsel: 1.2.0 -> git-2016-09-02
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

@cstrahan cstrahan referenced this issue Sep 20, 2016

Merged

xsel: 1.2.0 -> git-2016-09-02 #18774

6 of 7 tasks complete

cstrahan added a commit to cstrahan/nixpkgs that referenced this issue Sep 21, 2016

xsel: 1.2.0 -> git-2016-09-02
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

srhb added a commit to srhb/nixpkgs that referenced this issue Sep 28, 2016

xsel: 1.2.0 -> git-2016-09-02
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 added a commit to acowley/nixpkgs that referenced this issue Sep 29, 2016

xsel: 1.2.0 -> git-2016-09-02
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

This comment has been minimized.

Owner

kfish commented Aug 24, 2017

This was fixed by #16

@kfish kfish closed this Aug 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment