[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn add: Unrecognized line ending style

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 6 Jul 2010 16:18:19 +0300 (Jerusalem Daylight Time)

Aaron Turner wrote on Tue, 6 Jul 2010 at 01:43 -0000:
> Maybe this started happening after upgrading to svn 1.6.12, but not
> really sure about the timing, but all of a sudden I can't add any new
> files to my svn repo on my Mac (10.6.4) because I'm getting
> "Unrecognized line ending style" when I do an 'svn add'.
>
> > file pcapinfo.c
> pcapinfo.c: ASCII c program text
>
> > xxd pcapinfo.c | head
> 0000000: 2f2a 2024 4964 2420 2a2f 0a0a 2369 6e63 /* $Id$ */..#inc
> 0000010: 6c75 6465 2022 636f 6e66 6967 2e68 220a lude "config.h".
> 0000020: 2369 6e63 6c75 6465 2022 6465 6669 6e65 #include "define
> 0000030: 732e 6822 0a23 696e 636c 7564 6520 2263 s.h".#include "c
> 0000040: 6f6d 6d6f 6e2e 6822 0a0a 2369 6e63 6c75 ommon.h"..#inclu
> 0000050: 6465 203c 6663 6e74 6c2e 683e 0a23 696e de <fcntl.h>.#in
> 0000060: 636c 7564 6520 3c73 7973 2f74 7970 6573 clude <sys/types
> 0000070: 2e68 3e0a 2369 6e63 6c75 6465 203c 7379 .h>.#include <sy
> 0000080: 732f 7569 6f2e 683e 0a23 696e 636c 7564 s/uio.h>.#includ
> 0000090: 6520 3c75 6e69 7374 642e 683e 0a23 696e e <unistd.h>.#in
>
> As you can see, looks like a standard Unix text file to me, using line
> feeds (0x0a).
>
> In vim, I've done a ":w ++ff=unix" to force the file to unix text
> format just to be sure, but still having the same problem.
>

Can you please check the file for CR characters?

xxd -ps -c1 pcapinfo.c | grep -i 0d

>
Received on 2010-07-06 18:19:23 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.