quilt diff passes output through a pager even with color options enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quilt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Since moving to precise, quilt diff passes output through a pager even though the color option is set. This results in the output containing garbage color control characters like so:
ESC[32mIndex: b/parser/
=======
ESC[32m--- a/parser/
ESC[32m+++ b/parser/
ESC[33m@@ -189,7 +189,7 @@ESC[00m ESC[35mvoid normalize_tree(Node *t, int dir)ESC[00m
for (;;) {
if ((&epsnode == t->child[dir]) &&
ESC[35m- dynamic_
ESC[36m+ !dynamic_
To reproduce, do quilt diff --color=auto or add the following to your ~/.quiltrc:
QUILT_
and do quilt diff.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: quilt 0.50-2
ProcVersionSign
Uname: Linux 3.2.0-12-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
CheckboxSubmission: 9c15077a0ca1167
CheckboxSystem: 5dc75472945f57d
Date: Thu Feb 16 09:33:57 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: quilt
UpgradeStatus: Upgraded to precise on 2012-01-30 (17 days ago)
A workaround is to set
QUILT_PAGER=''
in the ~/.quiltrc. If it's unset, it falls back to $PAGER or less.