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 InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.2.1
Fixed Release: NonePlanned 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 File(s):

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
  • -unavailable- added by nico__ (Voted in favor of this item)
  • -unavailable- added by jfharrigan (Submitted the item)
  • -unavailable- added by jfharrigan

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 07 Jul 2017 07:25:32 PM UTCnico__Carbon-Copy-=>Added nico__
    Wed 25 Feb 2015 12:33:41 AM UTCjfharriganAttached File-=>Added screenrc-test, #33177
      Attached File-=>Added hardstatus.patch, #33178
      Attached File-=>Added utf8_lastline.patch, #33179
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1