From owner-freebsd-questions@freebsd.org Wed Sep 30 16:35:41 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4F66A0B0F0 for ; Wed, 30 Sep 2015 16:35:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98854109F for ; Wed, 30 Sep 2015 16:35:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 59174278A6; Wed, 30 Sep 2015 18:35:39 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t8UGZcPg002381; Wed, 30 Sep 2015 18:35:38 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 30 Sep 2015 18:35:38 +0200 From: Polytropon To: Dangling Pointer Cc: "freebsd-questions@freebsd.org" Subject: Re: git diff encoding issue when running via Hyper-V Message-Id: <20150930183538.2a5041f7.freebsd@edvax.de> In-Reply-To: References: <20150930165744.3437d751.freebsd@edvax.de> <20150930175436.c1117526.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 16:35:41 -0000 On Wed, 30 Sep 2015 16:21:57 +0000, Dangling Pointer wrote: > # echo "This is ^[[31mred^[[m text." > > > > prints red colored "red" text. :) > > > > # git diff &1> ../blah.txt > > # cat ../blah.txt > > > > shows: > > > > [...] > > -setup_dirs() > +setup_dirs2() > > [...] > > > > but > > > > # git diff > > > > still emits the mangled output on stdout. This seems to suggest that git does not use the default pager for output ("cat" or "less"). When you pipe the output to one of those programs, like % git diff | cat or % git diff | less is the output different? Does the Git documentation provide some clue about the pager it uses for its diff functionality? The problem becomes more clear now. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...