[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Pasting large amounts of text into readline-enabled p
From: |
Max Horn |
Subject: |
Re: [Bug-readline] Pasting large amounts of text into readline-enabled programs truncates parts of the lines of the text being pasted |
Date: |
Mon, 25 Jun 2012 19:13:33 +0200 |
Hi there,
I just wanted to ask whether there has been any progress on this bug in
6.2.0002, reported by Ben Booth in April? We (= the GAP team,
<http://www.gap-system.org/>) can also reproduce it (e.g. I just did on a Intel
64bit Debian system). For easy reproduction, consider the attached minirl.c
source file. Compiling it via
gcc -Wall -o minirl minirl.c -lreadline
and then running it via
./minirl TESTOUT
gives an easy mean to reproduce the issue on Linux with e.g. GNOME terminal.
Just take any moderately sized text file (say 5k or above) and paste it into
the terminal. The results will get written into TESTOUT, which one can now diff
against the input to detect any cuts. On the other hand,
doing the same with
cat > TESTOUT-cat
works just fine. Likewise if I replace the readline() call with a gets() call.
So this really seems to be a problem of readline, and not of the terminal.
Note that the issue does *not* occur on Mac OS X, presumably due to differences
in how pasting works in Mac OS X' Terminal.app compared to gnome terminal.
Cheers,
Max
minirl.c
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug-readline] Pasting large amounts of text into readline-enabled programs truncates parts of the lines of the text being pasted,
Max Horn <=