Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2015 12:50:15 -0400
From:      "Michael B. Eichorn" <ike@michaeleichorn.com>
To:        Polytropon <freebsd@edvax.de>, Dangling Pointer <danglingpointer@outlook.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: git diff encoding issue when running via Hyper-V
Message-ID:  <1443631815.1236.80.camel@michaeleichorn.com>
In-Reply-To: <20150930183538.2a5041f7.freebsd@edvax.de>
References:  <BAY169-W424C7A9E96B8530A5BCAF0A74D0@phx.gbl> <20150930165744.3437d751.freebsd@edvax.de> <BAY169-W427D636EB4B23950789C1BA74D0@phx.gbl> <20150930175436.c1117526.freebsd@edvax.de> <BAY169-W71C66922F8EC775F053CC4A74D0@phx.gbl> <20150930183538.2a5041f7.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 2015-09-30 at 18:35 +0200, Polytropon wrote:
> 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?

git(1) uses $PAGER unless overridden using $GIT_PAGER

> The problem becomes more clear now.
> 
>  		 	   		  
> 
[-- Attachment #2 --]
0	*H
010
	`He0	*H
000]0
	*H
010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
150613202446Z
160614003550Z0H10Uike@michaeleichorn.com1%0#	*H
	ike@michaeleichorn.com0"0
	*H
0
UՀ,k9D %Z|Y6J<rrK
g;&|uNlUE9)V.[ט̊:qS](#vSYDz*CpugYݔ,v<`j(waS#ڒ6n(K5'KVLåErv<J=[}W
bLA%gޭnVb|	I?M7D:$׃bM_T[,ƃ\00	U00U0U%0++0Ujj:	γ+39啖0U#0Sr풜\|~5NԸQ0!U0ike@michaeleichorn.com0LU C0?0;+70*0.+"http://www.startssl.com/policy.pdf0+00' StartCom Certification Authority0This certificate was issued according to the Class 1 Validation requirements of the StartCom CA policy, reliance only for the intended purpose in compliance of the relying party obligations.06U/0-0+)'%http://crl.startssl.com/crtu1-crl.crl0+009+0-http://ocsp.startssl.com/sub/class1/client/ca0B+06http://aia.startssl.com/certs/sub.class1.client.ca.crt0#U0http://www.startssl.com/0
	*H
x+ȐF}pw.XvF?rg
P]EOp)L˻yA
;hi0u2]m [Sbp$_
gr
Xm*YP3#H>mKAǠt)HO|=@}3ӝ'iO81>03	v'h5U
"H;ECZtpҗ4rWHu^6+i*kJL8shAV|5;?HMc\	j[j|+000]0
	*H
010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
150613202446Z
160614003550Z0H10Uike@michaeleichorn.com1%0#	*H
	ike@michaeleichorn.com0"0
	*H
0
UՀ,k9D %Z|Y6J<rrK
g;&|uNlUE9)V.[ט̊:qS](#vSYDz*CpugYݔ,v<`j(waS#ڒ6n(K5'KVLåErv<J=[}W
bLA%gޭnVb|	I?M7D:$׃bM_T[,ƃ\00	U00U0U%0++0Ujj:	γ+39啖0U#0Sr풜\|~5NԸQ0!U0ike@michaeleichorn.com0LU C0?0;+70*0.+"http://www.startssl.com/policy.pdf0+00' StartCom Certification Authority0This certificate was issued according to the Class 1 Validation requirements of the StartCom CA policy, reliance only for the intended purpose in compliance of the relying party obligations.06U/0-0+)'%http://crl.startssl.com/crtu1-crl.crl0+009+0-http://ocsp.startssl.com/sub/class1/client/ca0B+06http://aia.startssl.com/certs/sub.class1.client.ca.crt0#U0http://www.startssl.com/0
	*H
x+ȐF}pw.XvF?rg
P]EOp)L˻yA
;hi0u2]m [Sbp$_
gr
Xm*YP3#H>mKAǠt)HO|=@}3ӝ'iO81>03	v'h5U
"H;ECZtpҗ4rWHu^6+i*kJL8shAV|5;?HMc\	j[j|+0400
	*H
0}10	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
071024210155Z
171024210155Z010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0"0
	*H
0
	-).2AUGo#G
B|NDRpM-B=o-we5JQpa>O.#._<V
[~**pz~3WG.ᘟMlr[<Ce6fqO"uxfWN#uicgkv$Lb%y`_{`xK'GN00U00U0USr풜\|~5NԸQ0U#0N@[i04hCA0f+Z0X0'+0http://ocsp.startssl.com/ca0-+0!http://www.startssl.com/sfsca.crt0[UT0R0'%#!http://www.startssl.com/sfsca.crl0'%#!http://crl.startssl.com/sfsca.crl0U y0w0u+70f0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0
	*H

}x,\c^#wMq}>UK/^yX֏y	frMIŲB61ymQ󸟆ҨݬZ0&;@#13qۑ&	̢o	6r_;GO>*I(	74XS1r3)!LJy6Kotˆ#
_wSr
;B
ADp(fs䰷6%.W0J3:bC<8t X1<Cn=t==wST~\wkBf|15zUP)(IjVB!OfI=bb\4-*em/нSJm7N[]'@ڽD9Kr>R7/|o^I@ټ'Pa$ z9a'L)(
I}vcH]۸D*W}
m>Q|C.(,lQ100010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA]0
	`He0	*H
	1	*H
0	*H
	1
150930165015Z0O	*H
	1B@D1R֋Ly+
O(ɏU
'B^(a 2K*4WI$x_VG0	+710010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA]0*H
	1010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA]0
	*H
y4MNR*m jǽ';b"	_*̬tK~ߡ^M/Oѫ)x&c|ۅJN%.8"~F\X}ڃw8I32HTKw?[
@x<gɖ#}*W!7ԇ?J\m.0辝8e7>[j#"W>f@hB\bǁ;-{M-3@/yצ

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1443631815.1236.80.camel>