GNU bug report logs - #15444
One character can be lost if colors are enabled

Previous Next

Package: grep;

Reported by: Jaroslav Skarvada <jskarvad <at> redhat.com>

Date: Mon, 23 Sep 2013 13:35:02 UTC

Severity: normal

Full log


Message #26 received at 15444 <at> debbugs.gnu.org (full text, mbox):

From: "Walter Doekes" <walter <at> wjd.nu>
To: 456943 <at> bugs.debian.org
Cc: 15444 <at> debbugs.gnu.org
Subject: Re: Bug#456943: (no subject)
Date: Thu, 14 Jul 2016 09:02:48 +0200
Leon Meier wrote:
> As of today, the test case [...] still fails in (u)xterm.
> Any resolution in sight?

I tried to reproduce, and indeed, it fails on xterm (without the 'ne' grep
option), but not in gnome-terminal.

Does that mean that this is an xterm bug again and not a grep bug?

See this:
http://wjd.nu/files/2016/07/debian-bug-456943.png?view


This works both in gnome-terminal and xterm:

  python -c 'print(" "*'$COLUMNS'+"1234")' |
    GREP_COLORS=ne grep --color=auto '[1-9]'

This works in gnome-terminal and *fails* in xterm:

  python -c 'print(" "*'$COLUMNS'+"1234")' |
    grep --color=auto '[1-9]'

Versions (Ubuntu, Trusty, latest):

  gnome-terminal 3.6.2-0ubuntu1
  grep 2.16-1
  xterm 297-1ubuntu1

Greetings,
Walter Doekes




This bug report was last modified 1 year and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.