After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340631 - Printed lines containing tab characters are not wrapped correctly
Printed lines containing tab characters are not wrapped correctly
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
2.14.x
Other All
: Normal normal
: ---
Assigned To: Behdad Esfahbod
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-04 14:02 UTC by jnu
Modified: 2006-10-17 04:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
fix (687 bytes, patch)
2006-08-30 22:32 UTC, Behdad Esfahbod
accepted-commit_after_freeze Details | Review

Description jnu 2006-05-04 14:02:37 UTC
Please describe the problem:

When a line containing single characters and tab characters alternatively is
printed, gnome-terminal fails to wrap it correctly and any output wider than the
terminal window is lost. This does not happen in xterm or konsole. 

To reproduce, give the following command (in bash shell):

for ((k=1;k<100;k++)); do echo -n $'T\t'; done; echo

This should output several lines of T:s separated by tabs, but in gnome-terminal
only one line of output is seen. I think this is a pretty severe bug; it caused
me a lot of confusion as I was trying to print long lines of tab-separated
single character fields from a file. I'm surprised if it hasn't been reported
yet, but I couldn't find such a report.





Steps to reproduce:
1. try the above bash command
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Behdad Esfahbod 2006-08-30 22:32:08 UTC
Created attachment 71937 [details] [review]
fix
Comment 2 Mariano Suárez-Alvarez 2006-10-17 04:36:23 UTC
Fixed in HEAD:

2006-08-31  Behdad Esfahbod  <behdad@gnome.org>

        Bug 340631 – Printed lines containing tab characters are not wrapped
        correctly

        * src/vteseq.c (vte_sequence_handler_ta): make sure we don't move the
        cursor back when tabbing past the end of the line.