Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 39436 invoked from network); 1 Feb 2011 21:30:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 21:30:19 -0000 Received: (qmail 33465 invoked by uid 500); 1 Feb 2011 21:30:18 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 33431 invoked by uid 500); 1 Feb 2011 21:30:18 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 33418 invoked by uid 99); 1 Feb 2011 21:30:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 21:30:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jcorvel@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 21:30:11 +0000 Received: by iyj21 with SMTP id 21so6679036iyj.16 for ; Tue, 01 Feb 2011 13:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=1SuweO3JgIhdOIgwwJKvpJrNhM707Dtja0ZARepqkyU=; b=OK6QUF2242shrqr/jqRZME1zLV0N3z3eXt6JXUftqANBWQ6Se3v9LeB5yvcbuXnpOR VkIVt5fSnQD5i5NJBiHzrgtWcSO/RDKD6sdmWy8EwBRuqFh3uVBEEnI4+GYC7DaVhNtt VlaFL5MSe38wGTMv9JvaJChx+D7y4OgzIau3g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=dljohl8qMDfT63tJ+RyTjY3qt/vucIbwit4I56wPbwrvvdjSF7Y1rzy1NLquwUCm11 JO0QDEHB/mJHZbR/D7IEFxlgCfjc3v2Tm8c0DcJr81rED3wVfDbmnuxMSBK9H85VCwj2 MMUi4IbTZuffrJtXs+uxTjyg4sWn22mrw4P2w= Received: by 10.231.19.131 with SMTP id a3mr9021765ibb.85.1296595790793; Tue, 01 Feb 2011 13:29:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.39.140 with HTTP; Tue, 1 Feb 2011 13:29:30 -0800 (PST) In-Reply-To: <4D486F81.7070106@acm.org> References: <4D486F81.7070106@acm.org> From: Johan Corveleyn Date: Tue, 1 Feb 2011 22:29:30 +0100 Message-ID: Subject: Re: missing carriage returns from output of "svn diff" in Windows To: David Chapman Cc: users@subversion.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Feb 1, 2011 at 9:39 PM, David Chapman wrote: > Running Subversion 1.6.15 under Windows 7, if I redirect the output of "s= vn > diff" to a file and then try to edit that file using Notepad, the line > breaks are garbled. =A0In particular they have only the '\n' character, n= ot > the '\r' character. > > For example, if "svn_usage_notes.txt" is in my repository, and I do the > following in a sandbox: > > echo foo >> svn_usage_notes.txt > echo bar >> svn_usage_notes.txt > echo zot >> svn_usage_notes.txt > svn diff svn_usage_notes.txt > wowow.txt > od -c wowow.txt > > I get: > > 0000000 =A0 I =A0 n =A0 d =A0 e =A0 x =A0 : =A0 =A0 =A0 s =A0 v =A0 n =A0= _ =A0 u =A0 s =A0 a =A0 g =A0 e > 0000020 =A0 _ =A0 n =A0 o =A0 t =A0 e =A0 s =A0 . =A0 t =A0 x =A0 t =A0\r= =A0\n =A0 =3D =A0 =3D =A0 =3D =A0 =3D > 0000040 =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D = =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D > * > 0000120 =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D = =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0 =3D =A0\r > 0000140 =A0\n =A0 - =A0 - =A0 - =A0 =A0 =A0 s =A0 v =A0 n =A0 _ =A0 u =A0= s =A0 a =A0 g =A0 e =A0 _ =A0 n > 0000160 =A0 o =A0 t =A0 e =A0 s =A0 . =A0 t =A0 x =A0 t =A0\t =A0 ( =A0 r= =A0 e =A0 v =A0 i =A0 s =A0 i > 0000200 =A0 o =A0 n =A0 =A0 =A0 1 =A0 1 =A0 1 =A0 6 =A0 ) =A0\r =A0\n =A0= + =A0 + =A0 + =A0 =A0 =A0 s =A0 v > 0000220 =A0 n =A0 _ =A0 u =A0 s =A0 a =A0 g =A0 e =A0 _ =A0 n =A0 o =A0 t= =A0 e =A0 s =A0 . =A0 t =A0 x > 0000240 =A0 t =A0\t =A0 ( =A0 w =A0 o =A0 r =A0 k =A0 i =A0 n =A0 g =A0 = =A0 =A0 c =A0 o =A0 p =A0 y =A0 ) > 0000260 =A0\r =A0\n =A0 @ =A0 @ =A0 =A0 =A0 - =A0 6 =A0 1 =A0 2 =A0 2 =A0= , =A0 3 =A0 =A0 =A0 + =A0 6 =A0 1 > 0000300 =A0 2 =A0 2 =A0 , =A0 6 =A0 =A0 =A0 @ =A0 @ =A0\r =A0\n =A0 =A0 = =A0\n =A0 =A0 =A0 M =A0 a =A0 r =A0 k > 0000320 =A0 =A0 =A0 P =A0 h =A0 i =A0 p =A0 p =A0 a =A0 r =A0 d =A0\n =A0= =A0 =A0 h =A0 t =A0 t =A0 p =A0 : > 0000340 =A0 / =A0 / =A0 m =A0 a =A0 r =A0 k =A0 p =A0 h =A0 i =A0 p =A0 .= =A0 b =A0 l =A0 o =A0 g =A0 s > 0000360 =A0 p =A0 o =A0 t =A0 . =A0 c =A0 o =A0 m =A0 / =A0\n =A0 + =A0 f= =A0 o =A0 o =A0 =A0 =A0\n =A0 + > 0000400 =A0 b =A0 a =A0 r =A0 =A0 =A0\n =A0 + =A0 z =A0 o =A0 t =A0 =A0 = =A0\n > 0000413 > > Note how the first part of the file has "\r\n" while the last part (showi= ng > the extra lines) has only '\n'. =A0The file itself has "\r\n" for every l= ine, > and I have the following line in > C:\Users\David\AppData\Roaming\Subversion\config: > > *.txt =3D svn:eol-style=3Dnative Ok, that may be your client side config, but maybe it's not working correctly or not being picked up for whatever reason. Can you verify directly whether the property is set on the file? svn propget svn:eol-style svn_usage_notes.txt > The absence of newlines makes it impossible to view the differences file = in > Notepad. =A0Years ago before I knew about "unzip -a", I wrote a program t= o add > carriage returns to text files being copied from Linux to Windows and so = I > can use that, but it would be nice to have system-appropriate line ending= s > in the output of "svn diff" without this extra step. > > Is anyone else seeing this? =A0Is there a configuration parameter I can s= et to > fix it, or is it a bug that should be bumped to the dev list? Certainly no need to escalate to the dev list (unless we're going to discuss design/implementation considerations or something). We can discuss it on this list, and if we find out it's a genuine issue, you can submit it to the issue tracker. > (For the record, I have "UnxUtils.zip" loaded, so I have a number of > Unix/Linux utilities such as "od" available under Windows, and only the > Windows Subversion executable ever writes into a Windows sandbox.) Ok, this may be a very important detail. Can you first try to reproduce this issue without the UnxUtils loaded? Which client are you using actually (which distribution)? You aren't using one from cygwin are you? There are known problems with the svn client that comes with cygwin (don't know the details, but I think it can be confused about its native eol-style, because it thinks it's running on unix etc.). Also, is this something new you're seeing only from 1.6.15? Can you try reproducing with an older version, and try to find out when the problem first appeared? Cheers, --=20 Johan