rxvt-unicode sgr0 terminfo entry incorrect

Bug #568105 reported by Gertjan Halkes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ncurses (Ubuntu)
New
Undecided
Unassigned

Bug Description

The rxvt-unicode terminfo entry for sgr0 is currently set to \E[m\017, but this should be \E[m\(B. The original rxvt entry uses \016 and \017 for smacs and rmacs respectively and the sgr0 entry is correspondingly set to \E[m\017. For rxvt-unicode the smacs and rmacs entries have been changed to \E(0 and \E(B, but the sgr0 entry has not been updated to reflect the different rmacs sequence.

Steps to reproduce the error: the following two shell command sequences should result in the same output (two checkerboard blocks followed by two a's), but the first result in incorrect output (two times two checkerboard blocks):

tput smacs ; echo aa ; tput sgr0 ; echo aa ; tput rmacs
tput smacs ; echo aa ; tput rmacs ; echo aa ; tput rmacs

Note that I ended the sequence with tput rmacs to ensure that the terminal is left in normal character set mode, and not in the (unreadable) alternate character set mode.

Note that the rxvt-unicode entry is in the ubuntu diff, and not in the original source package. Bug found in karmic release, but may also exist in previous releases.

ProblemType: Bug
Architecture: amd64
Date: Wed Apr 21 23:50:02 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: ncurses-base 5.7+20090803-2ubuntu2
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: ncurses
Uname: Linux 2.6.31-20-generic x86_64
XsessionErrors: (polkit-gnome-authentication-agent-1:3180): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
Gertjan Halkes (r-launchpad-ghalkes-nl) wrote :
Revision history for this message
Olivier Mengué (dolmen) wrote :

This is fixed at least in Ubuntu precise:

$ dpkg -S /lib/terminfo/r/rxvt-unicode
ncurses-base: /lib/terminfo/r/rxvt-unicode
$ infocmp -1 rxvt-unicode | grep sgr0
 sgr0=\E[m\E(B,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.