From owner-freebsd-questions@freebsd.org Wed Sep 30 15:28:31 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 2E653A0C3A9 for ; Wed, 30 Sep 2015 15:28:31 +0000 (UTC) (envelope-from danglingpointer@outlook.com) Received: from BAY004-OMC2S27.hotmail.com (bay004-omc2s27.hotmail.com [65.54.190.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19D461A45 for ; Wed, 30 Sep 2015 15:28:30 +0000 (UTC) (envelope-from danglingpointer@outlook.com) Received: from BAY169-W42 ([65.54.190.125]) by BAY004-OMC2S27.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 30 Sep 2015 08:27:24 -0700 X-TMN: [6wNBNAwNtfddKlkVYehNP7tWnlqwf2Ze] X-Originating-Email: [danglingpointer@outlook.com] Message-ID: From: Dangling Pointer To: Polytropon CC: "freebsd-questions@freebsd.org" Subject: RE: git diff encoding issue when running via Hyper-V Date: Wed, 30 Sep 2015 15:27:23 +0000 Importance: Normal In-Reply-To: <20150930165744.3437d751.freebsd@edvax.de> References: , <20150930165744.3437d751.freebsd@edvax.de> MIME-Version: 1.0 X-OriginalArrivalTime: 30 Sep 2015 15:27:24.0001 (UTC) FILETIME=[817E3D10:01D0FB94] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 15:28:31 -0000 Thanks Polytropon for your reply. I am seeing this issue with these image as are (by only installing `git` an= d no other alterations made to the OS whatsoever): ftp://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/10.2-RELEASE/amd64/Lat= est/FreeBSD-10.2-RELEASE-amd64.vhd.xz.ftp://ftp.freebsd.org/pub/FreeBSD/rel= eases/VM-IMAGES/10.1-RELEASE/amd64/Latest/FreeBSD-10.1-RELEASE-amd64.vhd.xz= .=20 Should those be considered as standard installation?=20 Maybe it is related to keyboard layout as when I press Del key in text edit= or or command line=2C I get tilde (~) sign instead of getting character at = cursor deleted (so I use Backspace for deletion which works perfectly fine)= ? > Date: Wed=2C 30 Sep 2015 16:57:44 +0200 > From: freebsd@edvax.de > To: danglingpointer@outlook.com > Subject: Re: git diff encoding issue when running via Hyper-V > CC: freebsd-questions@freebsd.org >=20 > On Wed=2C 30 Sep 2015 14:31:36 +0000=2C Dangling Pointer wrote: > > Hi=2C=20 > > When I run FreeBSD 10.1 or 10.2 x64 via Hyper-V on Windows 10=2C the > > encoding of `git diff` command emits cluttered text (with lots of > > "ESC[m" noise) like: > > ESC[31m-setup_dirs()ESC[m > > ESC[32m+ESC[mESC[32msetup_dirs2()ESC[m > > instead of: > > -setup_dirs()+setup_dirs2() > > I don't know what to make of it. >=20 > This looks like color codes... >=20 >=20 >=20 > > Can somebody please let me know if this is a bug or do I need to > > configure something? >=20 > The pager (and the attached terminal emulator) should be able to > convert those codes (Escape=2C [=2C code sequence) into something > meaningful=2C usually a change of display attributes such as color=2C > inverse=2C underlined (or whatever the terminal supports). In your > case=2C those are displayed as-is. Standard FreeBSD installations > usually display them as desired: >=20 > -setup_dirs() <--- red text > +setup_dirs2() <--- green text >=20 > Note that "ESC" is wrong (or probably just a display replacement > for a non-printable character): The character has to be the ESC > code (ASCII #27 or 0x1b)=2C as seen here: >=20 > 00000000 1b 5b 33 31 6d 2d 73 65 74 75 70 5f 64 69 72 73 |.[31m-setup_= dirs| > 00000010 28 29 1b 5b 6d 0a 1b 5b 33 32 6d 2b 1b 5b 6d 1b |().[m..[32m+= .[m.| > 00000020 5b 33 32 6d 73 65 74 75 70 5f 64 69 72 73 32 28 |[32msetup_di= rs2(| > 00000030 29 1b 5b 6d 0a |).[m.| >=20 > Maybe your input data got mangled somehow and the ESC character > replaced by the string "ESC"=2C just as hexdump represents it as > a "." in the ASCII output column? >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg=2C Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe=2C Mousa=2C ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe=2C send any mail to "freebsd-questions-unsubscribe@freebsd= .org" =