Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 5237 invoked from network); 1 Feb 2011 20:40:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 20:40:04 -0000 Received: (qmail 360 invoked by uid 500); 1 Feb 2011 20:40:04 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 287 invoked by uid 500); 1 Feb 2011 20:40:03 -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 280 invoked by uid 99); 1 Feb 2011 20:40:03 -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 20:40:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcchapman@acm.org designates 64.142.19.5 as permitted sender) Received: from [64.142.19.5] (HELO b.mail.sonic.net) (64.142.19.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 20:39:55 +0000 Received: from [192.168.1.115] (70-36-212-24.dsl.static.sonic.net [70.36.212.24]) (authenticated bits=0) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id p11KdXJa030528 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 1 Feb 2011 12:39:34 -0800 Message-ID: <4D486F81.7070106@acm.org> Date: Tue, 01 Feb 2011 12:39:29 -0800 From: David Chapman Organization: Chapman Consulting User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: users@subversion.apache.org Subject: missing carriage returns from output of "svn diff" in Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Running Subversion 1.6.15 under Windows 7, if I redirect the output of "svn diff" to a file and then try to edit that file using Notepad, the line breaks are garbled. In particular they have only the '\n' character, not 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 I n d e x : s v n _ u s a g e 0000020 _ n o t e s . t x t \r \n = = = = 0000040 = = = = = = = = = = = = = = = = * 0000120 = = = = = = = = = = = = = = = \r 0000140 \n - - - s v n _ u s a g e _ n 0000160 o t e s . t x t \t ( r e v i s i 0000200 o n 1 1 1 6 ) \r \n + + + s v 0000220 n _ u s a g e _ n o t e s . t x 0000240 t \t ( w o r k i n g c o p y ) 0000260 \r \n @ @ - 6 1 2 2 , 3 + 6 1 0000300 2 2 , 6 @ @ \r \n \n M a r k 0000320 P h i p p a r d \n h t t p : 0000340 / / m a r k p h i p . b l o g s 0000360 p o t . c o m / \n + f o o \n + 0000400 b a r \n + z o t \n 0000413 Note how the first part of the file has "\r\n" while the last part (showing the extra lines) has only '\n'. The file itself has "\r\n" for every line, and I have the following line in C:\Users\David\AppData\Roaming\Subversion\config: *.txt = svn:eol-style=native The absence of newlines makes it impossible to view the differences file in Notepad. Years ago before I knew about "unzip -a", I wrote a program to 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 endings in the output of "svn diff" without this extra step. Is anyone else seeing this? Is there a configuration parameter I can set to fix it, or is it a bug that should be bumped to the dev list? (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.) Thanks. -- David Chapman dcchapman@acm.org Chapman Consulting -- San Jose, CA