bugGNU Screen - Bugs: bug #44366, hardstatus lastline UTF-8...

 
 

bug #44366: hardstatus lastline UTF-8 corruption

Submitted by:  john harrigan <jfharrigan>
Submitted on:  Wed 25 Feb 2015 12:33:41 AM UTC  
Votes:  10  
 
Category:  User Interface Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.2.1
Fixed Release:  None Planned Release:  None
Work Required:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 25 Feb 2015 12:33:41 AM UTC, original submission:

I get display corruption if I set hardstatus to alwayslastline and try to display UTF-8 characters in the hardstatus. First, the UTF-8 characters are not displayed correctly. Second, it looks like there are extra newlines in the hardstatus such that the hardstatus takes up multiple lines at the bottom of the terminal and lines in the regular portion of the screen are shifted out of view.

I did not have this problem with 4.0.3 so I patched 4.2.1 with some changes I took from 4.0.3 and the problem went away. I don't really know what I'm doing with the screen source so the patch is just the result of poking around in the two different versions. I'm attaching the patch in the hope that it helps one of the screen maintainers identify the actual problem. It obviously disables code that was deliberately added so the patch isn't really useful other than troubleshooting.

I have also applied the hardstatus.patch that archlinux applies to their version
of screen.

My testing was done with UXTerm on Linux
$LANG was set to "en_US.UTF-8"
screen was configured with "--enable-colors256 --enable-rxvt_osc --disable-socket-dir"

To reproduce the problem with 4.2.1 + hardstatus.patch:
1) start uxterm and run "screen -U -c screenrc-test"
2) now that you're in screen, echo -e "\033_Núñez\033\\"

To make the problem go away, apply my utf8_lastline.patch and re-run test.

john harrigan <jfharrigan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #33177:  screenrc-test added by jfharrigan (262B - application/octet-stream)
file #33178:  hardstatus.patch added by jfharrigan (793B - application/octet-stream)
file #33179:  utf8_lastline.patch added by jfharrigan (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nico__ (Voted in favor of this item)
  • -email is unavailable- added by jfharrigan (Submitted the item)
  • -email is unavailable- added by jfharrigan
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-07 nico__ Carbon-Copy- => Added nico__
    2015-02-25 jfharrigan Attached File- => Added screenrc-test, #33177
        Attached File- => Added hardstatus.patch, #33178
        Attached File- => Added utf8_lastline.patch, #33179
        Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3