Your message dated Wed, 3 Aug 2005 01:54:45 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#307216: #307216: xterm colorization problems
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 May 2005 20:04:48 +0000
>From [EMAIL PROTECTED] Sun May 01 13:04:48 2005
Return-path: <[EMAIL PROTECTED]>
Received: from faui03.informatik.uni-erlangen.de [131.188.30.103] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DSKgJ-0005ca-00; Sun, 01 May 2005 13:04:47 -0700
Received: from faui00u.informatik.uni-erlangen.de ([EMAIL PROTECTED] 
[131.188.30.59])
        by faui03.informatik.uni-erlangen.de (8.12.9/8.12.9) with ESMTP id 
j41K4jS8020232
        (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
        for <[EMAIL PROTECTED]>; Sun, 1 May 2005 20:04:46 GMT
Received: (from [EMAIL PROTECTED])
        by faui00u.informatik.uni-erlangen.de (8.13.4/8.12.3/Debian-8) id 
j41K4jXt001908;
        Sun, 1 May 2005 22:04:45 +0200
Message-Id: <[EMAIL PROTECTED]>
X-Authentication-Warning: faui00u.informatik.uni-erlangen.de: sithglan set 
sender to [EMAIL PROTECTED] using -f
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Thomas Glanzmann <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: xterm colorization problems
X-Mailer: reportbug 3.8
Date: Sun, 01 May 2005 22:04:45 +0200
X-Debbugs-Cc: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: xterm
Version: 4.3.0.dfsg.1-12.0.1
Severity: important
Tags: patch

Xterm has some colorization problems which are pop-up for example if you
read your eMail in mutt in a screen. The problem is:

        From: Thomas Dickey <[EMAIL PROTECTED]>
        To: Thomas Glanzmann <[EMAIL PROTECTED]>
        Subject: Re: Color problems with xterm-201
        Date: Sun, 1 May 2005 15:31:09 -0400
        I found the problem (took about an hour).  It was when xterm was writing
        out pending data, updated the display's colors and didn't restore.  That
        happened to be in one of those rarely-needed checks - it had some data
        leftover telling it to scroll just as it started writing new data.

        This fragment in charproc.c:

                if (!AddToRefresh(screen)) {
                    /* make sure that the correct GC is current */
                    currentGC = updatedXtermGC(screen, flags, fg_bg, False);

                    if (screen->scroll_amt)
                        FlushScroll(screen);

        doesn't account for that one of the functions called by FlushScroll()
        could modify the display's colors as is done in updatedXtermGC().

        What's odd is that the code is very old - and no one reported it before.
        I see the updatedXtermGC() call from 1996.  (On the other hand, I've
        encountered bugs that old more than once).

        Anyway, the fix for that is to move the assignment past the if 
statement:

                if (!AddToRefresh(screen)) {

                    if (screen->scroll_amt)
                        FlushScroll(screen);

                    /* make sure that the correct GC is current */
                    currentGC = updatedXtermGC(screen, flags, fg_bg, False);

        I'll check for other occurrences, of course.

The attached patch fixes the described problem. Please apply and
recompile.

--- xterm-201/charproc.c~redraw
+++ xterm-201/charproc.c
@@ -3435,12 +3435,13 @@
            InsertChar(screen, cells);
        }
        if (!AddToRefresh(screen)) {
-           /* make sure that the correct GC is current */
-           currentGC = updatedXtermGC(screen, flags, fg_bg, False);
 
            if (screen->scroll_amt)
                FlushScroll(screen);
 
+           /* make sure that the correct GC is current */
+           currentGC = updatedXtermGC(screen, flags, fg_bg, False);
+
            if (flags & INVISIBLE) {
                if (cells > len) {
                    str = temp_str = malloc(cells);

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (1050, 'testing'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.30
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages xterm depends on:
ii  libc6                2.3.2.ds1-21        GNU C Library: Shared libraries an
ii  libexpat1            1.95.8-1            XML parsing C library - runtime li
ii  libfontconfig1       2.3.1-2             generic font configuration library
ii  libfreetype6         2.1.7-2.4           FreeType 2 font engine, shared lib
ii  libice6              4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii  libncurses5          5.4-4               Shared libraries for terminal hand
ii  libsm6               4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii  libxaw7              4.3.0.dfsg.1-12.0.1 X Athena widget set library
ii  libxext6             4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte
ii  libxft2              2.1.7-1             FreeType-based font drawing librar
ii  libxmu6              4.3.0.dfsg.1-12.0.1 X Window System miscellaneous util
ii  libxpm4              4.3.0.dfsg.1-12.0.1 X pixmap library
ii  libxrender1          0.8.3-7             X Rendering Extension client libra
ii  libxt6               4.3.0.dfsg.1-12.0.1 X Toolkit Intrinsics
ii  xlibs                4.3.0.dfsg.1-12     X Keyboard Extension (XKB) configu
ii  xlibs-data           4.3.0.dfsg.1-12     X Window System client data

-- debconf-show failed

---------------------------------------
Received: (at 307216-done) by bugs.debian.org; 2 Aug 2005 23:54:54 +0000
>From [EMAIL PROTECTED] Tue Aug 02 16:54:54 2005
Return-path: <[EMAIL PROTECTED]>
Received: from cerrojo.elmundo.es (mail2.elmundo.es) [193.110.128.12] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1E06b0-0001ms-00; Tue, 02 Aug 2005 16:54:54 -0700
Received: from xanes.el-mundo.int (xanes.elmundo.int [10.5.222.50])
        by mail2.elmundo.es (Postfix) with ESMTP
        id 0147D4614D; Wed,  3 Aug 2005 01:54:57 +0200 (CEST)
Received: by xanes.el-mundo.int (Postfix, from userid 65500)
        id 02FF617316; Wed,  3 Aug 2005 01:54:53 +0200 (CEST)
Received: from localhost (xanes.elmundo.int [10.5.222.50])
        by xanes.el-mundo.int (Postfix) with ESMTP
        id CBECC17314; Wed,  3 Aug 2005 01:54:52 +0200 (CEST)
From: David =?iso-8859-15?q?Mart=EDnez_Moreno?= <[EMAIL PROTECTED]>
Organization: Debian
To: [EMAIL PROTECTED]
Subject: Re: Bug#307216: #307216: xterm colorization problems
Date: Wed, 3 Aug 2005 01:54:45 +0200
User-Agent: KMail/1.7.2
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart1457788.0lY4LSUqj0";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <[EMAIL PROTECTED]>
X-Bogosity: No, tests=bogofilter, spamicity=0.425328, version=0.10.3
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

--nextPart1457788.0lY4LSUqj0
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Version: 6.8.2.dfsg.1-1

El Mi=E9rcoles, 3 de Agosto de 2005 01:14, Thomas Dickey escribi=F3:
> This is fixed in patch #202

        Many thanks, Thomas. Closing this bug report, as patchset #202 is 
included=
 in=20
6.8.2.dfsg.1-1 and later.

        Regards,


                Ender.
=2D-=20
Network engineer
Debian Developer

--nextPart1457788.0lY4LSUqj0
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBC8AfMWs/EhA1iABsRAhpDAKCs/NHuhX6uwISpOVkodWHUqM1SFACfdVKw
yTg7qcMI9SRoxqAOumjQF9A=
=bVIt
-----END PGP SIGNATURE-----

--nextPart1457788.0lY4LSUqj0--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to